
This reverts commit 65a333600d5c88a98d674f637d092807cfc12253. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e4587d75882aebc21a04bee960418f8ce9
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
libmpdclient,
|
|
openssl,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ympd";
|
|
version = "1.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "notandy";
|
|
repo = "ympd";
|
|
rev = "v${version}";
|
|
sha256 = "1nvb19jd556v2h2bi7w4dcl507p3p8xvjkqfzrcsy7ccy3502brq";
|
|
};
|
|
|
|
# Workaround build failure on -fno-common toolchains like upstream
|
|
# gcc-10. Otherwise build fails as:
|
|
# ld: CMakeFiles/ympd.dir/src/mpd_client.c.o:(.bss+0x0): multiple definition of `mpd';
|
|
# CMakeFiles/ympd.dir/src/ympd.c.o:(.bss+0x20): first defined here
|
|
# Should be fixed by pending https://github.com/notandy/ympd/pull/191 (does not apply as is).
|
|
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
buildInputs = [
|
|
libmpdclient
|
|
openssl
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/notandy/ympd";
|
|
description = "Standalone MPD Web GUI written in C, utilizing Websockets and Bootstrap/JS";
|
|
maintainers = [ maintainers.siddharthist ];
|
|
platforms = platforms.unix;
|
|
license = licenses.gpl2Plus;
|
|
mainProgram = "ympd";
|
|
};
|
|
}
|