mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, libmpdclient
|
|
, openssl
|
|
, lua5_3
|
|
, libid3tag
|
|
, flac
|
|
, pcre2
|
|
, gzip
|
|
, perl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mympd";
|
|
version = "9.5.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jcorporation";
|
|
repo = "myMPD";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-0X/rEVfJ6zzX75R72xVntOfuCt8srp9PkiYOq3XbWPs=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
cmake
|
|
gzip
|
|
perl
|
|
];
|
|
preConfigure = ''
|
|
env MYMPD_BUILDDIR=$PWD/build ./build.sh createassets
|
|
'';
|
|
buildInputs = [
|
|
libmpdclient
|
|
openssl
|
|
lua5_3
|
|
libid3tag
|
|
flac
|
|
pcre2
|
|
];
|
|
|
|
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";
|
|
maintainers = [ lib.maintainers.doronbehar ];
|
|
platforms = lib.platforms.linux;
|
|
license = lib.licenses.gpl2Plus;
|
|
};
|
|
}
|