2021-02-12 11:32:44 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-08-22 09:06:25 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
2021-02-12 11:32:44 +00:00
|
|
|
, libmpdclient
|
2020-08-22 09:06:25 +00:00
|
|
|
, openssl
|
|
|
|
, lua5_3
|
|
|
|
, libid3tag
|
|
|
|
, flac
|
2022-08-27 08:09:24 +00:00
|
|
|
, pcre2
|
|
|
|
, gzip
|
|
|
|
, perl
|
2023-03-02 14:22:16 +00:00
|
|
|
, jq
|
2020-08-22 09:06:25 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mympd";
|
2023-03-11 16:22:25 +00:00
|
|
|
version = "10.2.5";
|
2020-08-22 09:06:25 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jcorporation";
|
|
|
|
repo = "myMPD";
|
|
|
|
rev = "v${version}";
|
2023-03-11 16:22:25 +00:00
|
|
|
sha256 = "sha256-ZxGMvbm9GKhhfCNZdeIYUh2FF4c3vXtvRdu24u3Zrtg=";
|
2020-08-22 09:06:25 +00:00
|
|
|
};
|
|
|
|
|
2022-08-27 08:09:24 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
cmake
|
|
|
|
gzip
|
|
|
|
perl
|
2023-03-02 14:22:16 +00:00
|
|
|
jq
|
2022-08-27 08:09:24 +00:00
|
|
|
];
|
|
|
|
preConfigure = ''
|
|
|
|
env MYMPD_BUILDDIR=$PWD/build ./build.sh createassets
|
|
|
|
'';
|
2020-08-22 09:06:25 +00:00
|
|
|
buildInputs = [
|
2021-02-12 11:32:44 +00:00
|
|
|
libmpdclient
|
2020-08-22 09:06:25 +00:00
|
|
|
openssl
|
|
|
|
lua5_3
|
|
|
|
libid3tag
|
|
|
|
flac
|
2022-08-27 08:09:24 +00:00
|
|
|
pcre2
|
2020-08-22 09:06:25 +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 = {
|
2022-08-27 08:09:24 +00:00
|
|
|
homepage = "https://jcorporation.github.io/myMPD";
|
2020-08-22 09:06:25 +00:00
|
|
|
description = "A standalone and mobile friendly web mpd client with a tiny footprint and advanced features";
|
2021-01-15 13:21:58 +00:00
|
|
|
maintainers = [ lib.maintainers.doronbehar ];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
license = lib.licenses.gpl2Plus;
|
2020-08-22 09:06:25 +00:00
|
|
|
};
|
|
|
|
}
|