10 stdenv.mkDerivation rec {
14 src = fetchFromGitHub {
18 sha256 = "1nvb19jd556v2h2bi7w4dcl507p3p8xvjkqfzrcsy7ccy3502brq";
21 # Workaround build failure on -fno-common toolchains like upstream
22 # gcc-10. Otherwise build fails as:
23 # ld: CMakeFiles/ympd.dir/src/mpd_client.c.o:(.bss+0x0): multiple definition of `mpd';
24 # CMakeFiles/ympd.dir/src/ympd.c.o:(.bss+0x20): first defined here
25 # Should be fixed by pending https://github.com/notandy/ympd/pull/191 (does not apply as is).
26 env.NIX_CFLAGS_COMPILE = "-fcommon";
28 nativeBuildInputs = [ cmake pkg-config ];
29 buildInputs = [ libmpdclient openssl ];
32 homepage = "https://github.com/notandy/ympd";
33 description = "Standalone MPD Web GUI written in C, utilizing Websockets and Bootstrap/JS";
34 maintainers = [ maintainers.siddharthist ];
35 platforms = platforms.unix;
36 license = licenses.gpl2Plus;