3
0
Fork 0
forked from mirrors/nixpkgs

libmikmod: fix missing darwin framework

This commit is contained in:
Daiderd Jordan 2016-08-07 17:52:01 +02:00
parent 00b05d47d3
commit b660ed3258
No known key found for this signature in database
GPG key ID: D02435D05B810C96
2 changed files with 12 additions and 6 deletions

View file

@ -1,6 +1,9 @@
{ stdenv, fetchurl, texinfo, alsaLib, libpulseaudio }:
{ stdenv, fetchurl, texinfo, alsaLib, libpulseaudio, CoreAudio }:
stdenv.mkDerivation rec {
let
inherit (stdenv.lib) optional optionals optionalString;
in stdenv.mkDerivation rec {
name = "libmikmod-3.3.7";
src = fetchurl {
url = "mirror://sourceforge/mikmod/${name}.tar.gz";
@ -8,11 +11,12 @@ stdenv.mkDerivation rec {
};
buildInputs = [ texinfo ]
++ stdenv.lib.optional stdenv.isLinux [ alsaLib libpulseaudio ];
++ optionals stdenv.isLinux [ alsaLib libpulseaudio ]
++ optional stdenv.isDarwin CoreAudio;
propagatedBuildInputs =
stdenv.lib.optional stdenv.isLinux libpulseaudio;
optional stdenv.isLinux libpulseaudio;
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lasound";
NIX_LDFLAGS = optionalString stdenv.isLinux "-lasound";
meta = with stdenv.lib; {
description = "A library for playing tracker music module files";

View file

@ -8292,7 +8292,9 @@ in
libmicrohttpd = callPackage ../development/libraries/libmicrohttpd { };
libmikmod = callPackage ../development/libraries/libmikmod { };
libmikmod = callPackage ../development/libraries/libmikmod {
inherit (darwin.apple_sdk.frameworks) CoreAudio;
};
libmilter = callPackage ../development/libraries/libmilter { };