Merge pull request #34445 from vbgl/mpd_clientlib-darwin

mpd_clientlib, ncmpc: fix on Darwin
This commit is contained in:
Daiderd Jordan 2018-02-02 00:34:21 +01:00 committed by GitHub
commit fa56fc4be0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
buildInputs = [ glib ncurses mpd_clientlib ];
nativeBuildInputs = [ meson ninja pkgconfig gettext ];
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
meta = with stdenv.lib; {
description = "Curses-based interface for MPD (music player daemon)";
homepage = https://www.musicpd.org/clients/ncmpc/;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, meson, ninja }:
{ stdenv, fetchFromGitHub, meson, ninja, fixDarwinDylibNames }:
stdenv.mkDerivation rec {
version = "2.13";
@ -11,7 +11,8 @@ stdenv.mkDerivation rec {
sha256 = "1g1n6rk8kn87mbjqxxj0vi7haj8xx21xmqlzbrx2fvyp5357zvsq";
};
nativeBuildInputs = [ meson ninja ];
nativeBuildInputs = [ meson ninja ]
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
meta = with stdenv.lib; {
description = "Client library for MPD (music player daemon)";