audiofile: Fix build on darwin
This commit is contained in:
parent
5ff34bac8c
commit
981e8d5582
2 changed files with 8 additions and 3 deletions
|
@ -1,10 +1,13 @@
|
|||
{ stdenv, fetchurl, alsaLib }:
|
||||
{ stdenv, fetchurl, alsaLib, AudioUnit, CoreServices }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "audiofile-0.3.6";
|
||||
|
||||
nativeBuildInputs = stdenv.lib.optional stdenv.isLinux alsaLib;
|
||||
|
||||
buildInputs = (stdenv.lib.optional stdenv.isDarwin CoreServices) ++
|
||||
(stdenv.lib.optional stdenv.isDarwin AudioUnit);
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://audiofile.68k.org/${name}.tar.gz";
|
||||
sha256 = "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind";
|
||||
|
@ -14,7 +17,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Library for reading and writing audio files in various formats";
|
||||
homepage = http://www.68k.org/~michael/audiofile/;
|
||||
homepage = http://www.68k.org/~michael/audiofile/;
|
||||
license = licenses.lgpl21Plus;
|
||||
maintainers = with maintainers; [ lovek323 ];
|
||||
platforms = platforms.unix;
|
||||
|
|
|
@ -6195,7 +6195,9 @@ let
|
|||
|
||||
aubio = callPackage ../development/libraries/aubio { };
|
||||
|
||||
audiofile = callPackage ../development/libraries/audiofile { };
|
||||
audiofile = callPackage ../development/libraries/audiofile {
|
||||
inherit (darwin.apple_sdk.frameworks) AudioUnit CoreServices;
|
||||
};
|
||||
|
||||
babl = callPackage ../development/libraries/babl { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue