diff options
Diffstat (limited to 'pkgs/applications/audio/mympd/default.nix')
-rw-r--r-- | pkgs/applications/audio/mympd/default.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/applications/audio/mympd/default.nix b/pkgs/applications/audio/mympd/default.nix new file mode 100644 index 00000000000..03d0556326a --- /dev/null +++ b/pkgs/applications/audio/mympd/default.nix @@ -0,0 +1,52 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, pkg-config +, libmpdclient +, openssl +, lua5_3 +, libid3tag +, flac +, pcre +}: + +stdenv.mkDerivation rec { + pname = "mympd"; + version = "7.0.2"; + + src = fetchFromGitHub { + owner = "jcorporation"; + repo = "myMPD"; + rev = "v${version}"; + sha256 = "sha256-2V3LbgnJfTIO71quZ+hfLnw/lNLYxXt19jw2Od6BVvM="; + }; + + nativeBuildInputs = [ pkg-config cmake ]; + buildInputs = [ + libmpdclient + openssl + lua5_3 + libid3tag + flac + pcre + ]; + + cmakeFlags = [ + "-DENABLE_LUA=ON" + # Otherwise, it tries to parse $out/etc/mympd.conf on startup. + "-DCMAKE_INSTALL_SYSCONFDIR=/etc" + # similarly here + "-DCMAKE_INSTALL_LOCALSTATEDIR=/var/lib/mympd" + ]; + # See https://github.com/jcorporation/myMPD/issues/315 + hardeningDisable = [ "strictoverflow" ]; + + meta = { + homepage = "https://jcorporation.github.io/mympd"; + description = "A standalone and mobile friendly web mpd client with a tiny footprint and advanced features"; + maintainers = [ lib.maintainers.doronbehar ]; + platforms = lib.platforms.linux; + license = lib.licenses.gpl2Plus; + }; +} |