depot/third_party/nixpkgs/pkgs/applications/audio/mympd/default.nix
Default email 2189cff663 Project import generated by Copybara.
GitOrigin-RevId: 1fe6ed37fd9beb92afe90671c0c2a662a03463dd
2021-04-24 22:57:28 -05:00

52 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, libmpdclient
, openssl
, lua5_3
, libid3tag
, flac
, pcre
}:
stdenv.mkDerivation rec {
pname = "mympd";
version = "7.0.2";
src = fetchFromGitHub {
owner = "jcorporation";
repo = "myMPD";
rev = "v${version}";
sha256 = "sha256-2V3LbgnJfTIO71quZ+hfLnw/lNLYxXt19jw2Od6BVvM=";
};
nativeBuildInputs = [ pkg-config cmake ];
buildInputs = [
libmpdclient
openssl
lua5_3
libid3tag
flac
pcre
];
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;
};
}