From 004a23f47758ac2593e7a177ee9a45ec1d9a28a4 Mon Sep 17 00:00:00 2001 From: Michael Kuryshev Date: Sun, 19 Jul 2015 18:52:01 +0300 Subject: [PATCH] mpc: enable on darwin --- pkgs/applications/audio/mpc/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/audio/mpc/default.nix b/pkgs/applications/audio/mpc/default.nix index 2f798fff7b9..f37585d3dec 100644 --- a/pkgs/applications/audio/mpc/default.nix +++ b/pkgs/applications/audio/mpc/default.nix @@ -13,15 +13,15 @@ stdenv.mkDerivation rec { preConfigure = '' - export LIBMPDCLIENT_LIBS=${mpd_clientlib}/lib/libmpdclient.so.${mpd_clientlib.majorVersion}.0.${mpd_clientlib.minorVersion} + export LIBMPDCLIENT_LIBS=${mpd_clientlib}/lib/libmpdclient.${if stdenv.isDarwin then mpd_clientlib.majorVersion + ".dylib" else "so." + mpd_clientlib.majorVersion + ".0." + mpd_clientlib.minorVersion} export LIBMPDCLIENT_CFLAGS=${mpd_clientlib} ''; - meta = { + meta = with stdenv.lib; { description = "A minimalist command line interface to MPD"; homepage = http://www.musicpd.org/clients/mpc/; - license = stdenv.lib.licenses.gpl2; - maintainers = [ stdenv.lib.maintainers.algorith ]; - platforms = stdenv.lib.platforms.linux; + license = licenses.gpl2; + maintainers = [ maintainers.algorith ]; + platforms = with platforms; linux ++ darwin; }; }