mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03: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";
|
name = "libmikmod-3.3.7";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/mikmod/${name}.tar.gz";
|
url = "mirror://sourceforge/mikmod/${name}.tar.gz";
|
||||||
@ -8,11 +11,12 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ texinfo ]
|
buildInputs = [ texinfo ]
|
||||||
++ stdenv.lib.optional stdenv.isLinux [ alsaLib libpulseaudio ];
|
++ optionals stdenv.isLinux [ alsaLib libpulseaudio ]
|
||||||
|
++ optional stdenv.isDarwin CoreAudio;
|
||||||
propagatedBuildInputs =
|
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; {
|
meta = with stdenv.lib; {
|
||||||
description = "A library for playing tracker music module files";
|
description = "A library for playing tracker music module files";
|
||||||
|
@ -8292,7 +8292,9 @@ in
|
|||||||
|
|
||||||
libmicrohttpd = callPackage ../development/libraries/libmicrohttpd { };
|
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 { };
|
libmilter = callPackage ../development/libraries/libmilter { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user