Skip to content

Commit 7b29170

Browse files
matthewbauerLnL7
authored andcommittedNov 16, 2017
ncmpc: fix on darwin
(cherry picked from commit ba62c31)
1 parent 3af3cae commit 7b29170

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ in stdenv.mkDerivation rec {
1919
buildInputs = [ glib ncurses mpd_clientlib ];
2020
nativeBuildInputs = [ meson ninja pkgconfig gettext ];
2121

22-
postFixup = ''
22+
postFixup = stdenv.lib.optionalString stdenv.isLinux ''
2323
for elf in "$out"/bin/*; do
2424
patchelf --set-rpath '${rpath}':"$out/lib" "$elf"
2525
done
2626
'';
2727

28+
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
29+
2830
meta = with stdenv.lib; {
2931
description = "Curses-based interface for MPD (music player daemon)";
3032
homepage = http://www.musicpd.org/clients/ncmpc/;

0 commit comments

Comments
 (0)
Please sign in to comment.