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

36 lines
949 B
Nix
Raw Normal View History

2017-10-02 20:23:56 +02:00
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, glib, ncurses
, mpd_clientlib, gettext }:
2014-03-25 15:45:24 +01:00
2017-10-02 20:23:56 +02:00
let
rpath = stdenv.lib.makeLibraryPath [
glib ncurses mpd_clientlib
];
in stdenv.mkDerivation rec {
2014-03-25 15:45:24 +01:00
name = "ncmpc-${version}";
2017-10-02 20:23:56 +02:00
version = "0.28";
2014-03-25 15:45:24 +01:00
src = fetchFromGitHub {
owner = "MusicPlayerDaemon";
repo = "ncmpc";
rev = "v${version}";
2017-10-02 20:23:56 +02:00
sha256 = "1z0bdkqsdb3f5k2lsws3qzav4r30fzk8fhxj9l0p738flcka6k4n";
2014-03-25 15:45:24 +01:00
};
buildInputs = [ glib ncurses mpd_clientlib ];
2017-10-02 20:23:56 +02:00
nativeBuildInputs = [ meson ninja pkgconfig gettext ];
2017-10-02 20:23:56 +02:00
postFixup = ''
for elf in "$out"/bin/*; do
patchelf --set-rpath '${rpath}':"$out/lib" "$elf"
done
'';
2014-03-25 15:45:24 +01:00
meta = with stdenv.lib; {
description = "Curses-based interface for MPD (music player daemon)";
homepage = http://www.musicpd.org/clients/ncmpc/;
license = licenses.gpl2Plus;
platforms = platforms.all;
2017-10-02 20:23:56 +02:00
maintainers = with maintainers; [ fpletz ];
2014-03-25 15:45:24 +01:00
};
}