mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
libmikmod: fix missing darwin framework
This commit is contained in:
parent
00b05d47d3
commit
b660ed3258
@ -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";
|
||||
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user