2021-02-13 14:23:35 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-12-07 07:45:13 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
2021-02-13 14:23:35 +00:00
|
|
|
, libmpdclient
|
2020-12-07 07:45:13 +00:00
|
|
|
, openssl
|
|
|
|
, lua5_3
|
|
|
|
, libid3tag
|
|
|
|
, flac
|
2021-04-25 03:57:28 +00:00
|
|
|
, pcre
|
2020-12-07 07:45:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mympd";
|
2021-08-18 13:19:15 +00:00
|
|
|
version = "8.0.3";
|
2020-12-07 07:45:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jcorporation";
|
|
|
|
repo = "myMPD";
|
|
|
|
rev = "v${version}";
|
2021-08-18 13:19:15 +00:00
|
|
|
sha256 = "sha256-J37PH+yRSsPeNCdY2mslrjMoBwutm5xTSIt+TWyf21M=";
|
2020-12-07 07:45:13 +00:00
|
|
|
};
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
2020-12-07 07:45:13 +00:00
|
|
|
buildInputs = [
|
2021-02-13 14:23:35 +00:00
|
|
|
libmpdclient
|
2020-12-07 07:45:13 +00:00
|
|
|
openssl
|
|
|
|
lua5_3
|
|
|
|
libid3tag
|
|
|
|
flac
|
2021-04-25 03:57:28 +00:00
|
|
|
pcre
|
2020-12-07 07:45:13 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
2021-01-17 00:15:33 +00:00
|
|
|
maintainers = [ lib.maintainers.doronbehar ];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
license = lib.licenses.gpl2Plus;
|
2020-12-07 07:45:13 +00:00
|
|
|
};
|
|
|
|
}
|