1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

ncmpc: 0.27 -> 0.28

This commit is contained in:
Franz Pletz 2017-10-02 20:23:56 +02:00
parent 1ff1c6ac4a
commit 38cc4f9f33
No known key found for this signature in database
GPG key ID: 846FDED7792617B4

View file

@ -1,36 +1,35 @@
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, glib, ncurses, mpd_clientlib, libintlOrEmpty }: { stdenv, fetchFromGitHub, meson, ninja, pkgconfig, glib, ncurses
, mpd_clientlib, gettext }:
stdenv.mkDerivation rec { let
rpath = stdenv.lib.makeLibraryPath [
glib ncurses mpd_clientlib
];
in stdenv.mkDerivation rec {
name = "ncmpc-${version}"; name = "ncmpc-${version}";
version = "0.27"; version = "0.28";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "MusicPlayerDaemon"; owner = "MusicPlayerDaemon";
repo = "ncmpc"; repo = "ncmpc";
rev = "v${version}"; rev = "v${version}";
sha256 = "0sfal3wadqvy6yas4xzhw35awdylikci8kbdcmgm4l2afpmc1lrr"; sha256 = "1z0bdkqsdb3f5k2lsws3qzav4r30fzk8fhxj9l0p738flcka6k4n";
}; };
buildInputs = [ glib ncurses mpd_clientlib ]; buildInputs = [ glib ncurses mpd_clientlib ];
# ++ libintlOrEmpty; nativeBuildInputs = [ meson ninja pkgconfig gettext ];
nativeBuildInputs = [ autoreconfHook pkgconfig ];
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl"; postFixup = ''
for elf in "$out"/bin/*; do
# without this, po/Makefile.in.in is not being created patchelf --set-rpath '${rpath}':"$out/lib" "$elf"
preAutoreconf = '' done
./autogen.sh
''; '';
configureFlags = [
"--enable-colors"
"--enable-lyrics-screen"
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Curses-based interface for MPD (music player daemon)"; description = "Curses-based interface for MPD (music player daemon)";
homepage = http://www.musicpd.org/clients/ncmpc/; homepage = http://www.musicpd.org/clients/ncmpc/;
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
platforms = platforms.all; platforms = platforms.all;
maintainers = with maintainers; [ fpletz ];
}; };
} }