1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-13 08:05:40 +00:00
nixpkgs/pkgs/applications/audio/mympd/default.nix

53 lines
1.1 KiB
Nix
Raw Normal View History

2021-02-12 11:32:44 +00:00
{ lib
, stdenv
2020-08-22 10:06:25 +01:00
, fetchFromGitHub
, cmake
, pkg-config
2021-02-12 11:32:44 +00:00
, libmpdclient
2020-08-22 10:06:25 +01:00
, openssl
, lua5_3
, libid3tag
, flac
2021-04-22 22:58:18 +01:00
, pcre
2020-08-22 10:06:25 +01:00
}:
stdenv.mkDerivation rec {
pname = "mympd";
2021-08-22 08:29:58 +01:00
version = "8.0.4";
2020-08-22 10:06:25 +01:00
src = fetchFromGitHub {
owner = "jcorporation";
repo = "myMPD";
rev = "v${version}";
2021-08-22 08:29:58 +01:00
sha256 = "sha256-hpUoXqblhHreDZg8fDD5S4UG+ltptIbzP9LKyQ/WbX0=";
2020-08-22 10:06:25 +01:00
};
2021-02-12 11:32:44 +00:00
nativeBuildInputs = [ pkg-config cmake ];
2020-08-22 10:06:25 +01:00
buildInputs = [
2021-02-12 11:32:44 +00:00
libmpdclient
2020-08-22 10:06:25 +01:00
openssl
lua5_3
libid3tag
flac
2021-04-22 22:58:18 +01:00
pcre
2020-08-22 10:06:25 +01: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 = {
homepage = "https://jcorporation.github.io/mympd";
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 10:06:25 +01:00
};
}