mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
36 lines
949 B
Nix
36 lines
949 B
Nix
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, glib, ncurses
|
|
, mpd_clientlib, gettext }:
|
|
|
|
let
|
|
rpath = stdenv.lib.makeLibraryPath [
|
|
glib ncurses mpd_clientlib
|
|
];
|
|
in stdenv.mkDerivation rec {
|
|
name = "ncmpc-${version}";
|
|
version = "0.28";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MusicPlayerDaemon";
|
|
repo = "ncmpc";
|
|
rev = "v${version}";
|
|
sha256 = "1z0bdkqsdb3f5k2lsws3qzav4r30fzk8fhxj9l0p738flcka6k4n";
|
|
};
|
|
|
|
buildInputs = [ glib ncurses mpd_clientlib ];
|
|
nativeBuildInputs = [ meson ninja pkgconfig gettext ];
|
|
|
|
postFixup = ''
|
|
for elf in "$out"/bin/*; do
|
|
patchelf --set-rpath '${rpath}':"$out/lib" "$elf"
|
|
done
|
|
'';
|
|
|
|
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;
|
|
maintainers = with maintainers; [ fpletz ];
|
|
};
|
|
}
|