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
|
2022-09-09 14:08:57 +00:00
|
|
|
, pcre2
|
|
|
|
, gzip
|
|
|
|
, perl
|
2023-03-08 16:32:21 +00:00
|
|
|
, jq
|
2020-12-07 07:45:13 +00:00
|
|
|
}:
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-12-07 07:45:13 +00:00
|
|
|
pname = "mympd";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "13.0.0";
|
2020-12-07 07:45:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jcorporation";
|
|
|
|
repo = "myMPD";
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-cYoGjge2VtU+QqIURGd/EpkSQ4fhvsdnYZYyESAd56U=";
|
2020-12-07 07:45:13 +00:00
|
|
|
};
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
cmake
|
|
|
|
gzip
|
|
|
|
perl
|
2023-03-08 16:32:21 +00:00
|
|
|
jq
|
2022-09-09 14:08:57 +00:00
|
|
|
];
|
|
|
|
preConfigure = ''
|
|
|
|
env MYMPD_BUILDDIR=$PWD/build ./build.sh createassets
|
|
|
|
'';
|
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
|
2022-09-09 14:08:57 +00:00
|
|
|
pcre2
|
2020-12-07 07:45:13 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
# Otherwise, it tries to parse $out/etc/mympd.conf on startup.
|
|
|
|
"-DCMAKE_INSTALL_SYSCONFDIR=/etc"
|
|
|
|
# similarly here
|
|
|
|
"-DCMAKE_INSTALL_LOCALSTATEDIR=/var/lib/mympd"
|
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
hardeningDisable = [
|
|
|
|
# causes redefinition of _FORTIFY_SOURCE
|
|
|
|
"fortify3"
|
|
|
|
];
|
2023-08-22 20:05:09 +00:00
|
|
|
# 5 tests out of 23 fail, probably due to the sandbox...
|
|
|
|
doCheck = false;
|
2020-12-07 07:45:13 +00:00
|
|
|
|
|
|
|
meta = {
|
2022-09-09 14:08:57 +00:00
|
|
|
homepage = "https://jcorporation.github.io/myMPD";
|
2020-12-07 07:45:13 +00:00
|
|
|
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
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|