From 981e8d55824717960809179a47bfeb81c8c1ee70 Mon Sep 17 00:00:00 2001 From: Ollie Charles Date: Tue, 26 Jan 2016 14:43:22 +0000 Subject: [PATCH] audiofile: Fix build on darwin --- pkgs/development/libraries/audiofile/default.nix | 7 +++++-- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/audiofile/default.nix b/pkgs/development/libraries/audiofile/default.nix index 1fe6d7b15a83..c76115000cb0 100644 --- a/pkgs/development/libraries/audiofile/default.nix +++ b/pkgs/development/libraries/audiofile/default.nix @@ -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; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ecaab504e322..96f91be75052 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };