nixpkgs/pkgs/applications/audio/mympd/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

68 lines
1.3 KiB
Nix
Raw Normal View History

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
, pcre2
, gzip
, perl
, jq
2020-08-22 09:06:25 +00:00
}:
2023-09-20 13:21:15 +00:00
stdenv.mkDerivation (finalAttrs: {
2020-08-22 09:06:25 +00:00
pname = "mympd";
2023-11-02 05:17:23 +00:00
version = "13.0.0";
2020-08-22 09:06:25 +00:00
src = fetchFromGitHub {
owner = "jcorporation";
repo = "myMPD";
2023-09-20 13:21:15 +00:00
rev = "v${finalAttrs.version}";
2023-11-02 05:17:23 +00:00
sha256 = "sha256-cYoGjge2VtU+QqIURGd/EpkSQ4fhvsdnYZYyESAd56U=";
2020-08-22 09:06:25 +00:00
};
nativeBuildInputs = [
pkg-config
cmake
gzip
perl
jq
];
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
pcre2
2020-08-22 09:06:25 +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-09 17:37:08 +00:00
hardeningDisable = [
# causes redefinition of _FORTIFY_SOURCE
"fortify3"
];
2023-08-20 20:35:23 +00:00
# 5 tests out of 23 fail, probably due to the sandbox...
doCheck = false;
2020-08-22 09:06:25 +00:00
meta = {
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
};
2023-09-20 13:21:15 +00:00
})