1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 11:02:05 +00:00

audiofile: Fix build on darwin

This commit is contained in:
Ollie Charles 2016-01-26 14:43:22 +00:00
parent 5ff34bac8c
commit 981e8d5582
2 changed files with 8 additions and 3 deletions

View file

@ -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;

View file

@ -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 { };