biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / audio / mympd / default.nix
blobcae2a3b7f1a9ce2d78f1b5cea3d6296b3e271af3
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , cmake
5 , pkg-config
6 , libmpdclient
7 , openssl
8 , lua5_3
9 , libid3tag
10 , flac
11 , pcre2
12 , gzip
13 , perl
14 , jq
17 stdenv.mkDerivation (finalAttrs: {
18   pname = "mympd";
19   version = "14.1.2";
21   src = fetchFromGitHub {
22     owner = "jcorporation";
23     repo = "myMPD";
24     rev = "v${finalAttrs.version}";
25     sha256 = "sha256-CMqH9iy9U85bKj7YLcYsKFs5CDePGBEfUWL+sb7WzBw=";
26   };
28   nativeBuildInputs = [
29     pkg-config
30     cmake
31     gzip
32     perl
33     jq
34   ];
35   preConfigure = ''
36     env MYMPD_BUILDDIR=$PWD/build ./build.sh createassets
37   '';
38   buildInputs = [
39     libmpdclient
40     openssl
41     lua5_3
42     libid3tag
43     flac
44     pcre2
45   ];
47   cmakeFlags = [
48     # Otherwise, it tries to parse $out/etc/mympd.conf on startup.
49     "-DCMAKE_INSTALL_SYSCONFDIR=/etc"
50     # similarly here
51     "-DCMAKE_INSTALL_LOCALSTATEDIR=/var/lib/mympd"
52   ];
53   hardeningDisable = [
54     # causes redefinition of _FORTIFY_SOURCE
55     "fortify3"
56   ];
57   # 5 tests out of 23 fail, probably due to the sandbox...
58   doCheck = false;
60   meta = {
61     homepage = "https://jcorporation.github.io/myMPD";
62     description = "A standalone and mobile friendly web mpd client with a tiny footprint and advanced features";
63     maintainers = [ lib.maintainers.doronbehar ];
64     platforms = lib.platforms.linux;
65     license = lib.licenses.gpl2Plus;
66     mainProgram = "mympd";
67   };