3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/mympd/default.nix
2021-01-16 17:58:11 +07:00

54 lines
1.1 KiB
Nix

{ lib, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, mpd_clientlib
, openssl
, lua5_3
, libid3tag
, flac
, mongoose
}:
stdenv.mkDerivation rec {
pname = "mympd";
version = "6.8.3";
src = fetchFromGitHub {
owner = "jcorporation";
repo = "myMPD";
rev = "v${version}";
sha256 = "1a3jrqslxk2a9h5gj6kch108lg9z0i5zwr0j9yd5viyfhr3ka4cq";
};
nativeBuildInputs = [
pkg-config
cmake
];
buildInputs = [
mpd_clientlib
openssl
lua5_3
libid3tag
flac
];
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;
};
}