Skip to content

Commit

Permalink
ncmpc: fix on darwin
Browse files Browse the repository at this point in the history
(cherry picked from commit ba62c31)
  • Loading branch information
matthewbauer authored and LnL7 committed Nov 16, 2017
1 parent 3af3cae commit 7b29170
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/applications/audio/ncmpc/default.nix
Expand Up @@ -19,12 +19,14 @@ in stdenv.mkDerivation rec {
buildInputs = [ glib ncurses mpd_clientlib ];
nativeBuildInputs = [ meson ninja pkgconfig gettext ];

postFixup = ''
postFixup = stdenv.lib.optionalString stdenv.isLinux ''
for elf in "$out"/bin/*; do
patchelf --set-rpath '${rpath}':"$out/lib" "$elf"
done
'';

NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";

meta = with stdenv.lib; {
description = "Curses-based interface for MPD (music player daemon)";
homepage = http://www.musicpd.org/clients/ncmpc/;
Expand Down

0 comments on commit 7b29170

Please sign in to comment.