audiofile: fix build on darwin

* disable alsaLib
* build with gccApple
This commit is contained in:
Jason \"Don\" O'Conal 2013-07-04 14:52:51 +10:00 committed by Rok Garbas
parent 0024926701
commit 7ef50f5098
2 changed files with 11 additions and 6 deletions

View file

@ -3,17 +3,18 @@
stdenv.mkDerivation rec {
name = "audiofile-0.3.3";
buildInputs = [ alsaLib ];
buildInputs = stdenv.lib.optional (!stdenv.isDarwin) alsaLib;
src = fetchurl {
url = "http://audiofile.68k.org/${name}.tar.gz";
sha256 = "1qm7z0g1d9rcxi1m87slgdi0rhl94g13dx3d2b05dilghwpgjjgq";
};
meta = {
meta = with stdenv.lib; {
description = "A library for reading and writing audio files in various formats";
homepage = http://www.68k.org/~michael/audiofile/;
license = "lgpl";
maintainers = [ stdenv.lib.maintainers.shlevy ];
homepage = http://www.68k.org/~michael/audiofile/;
license = licenses.lgpl;
maintainers = with maintainers; [ lovek323 shlevy ];
platforms = platforms.unix;
};
}

View file

@ -3703,7 +3703,11 @@ let
aubio = callPackage ../development/libraries/aubio { };
audiofile = callPackage ../development/libraries/audiofile { };
audiofile = callPackage ../development/libraries/audiofile {
stdenv = if stdenv.isDarwin
then overrideGCC stdenv gccApple
else stdenv;
};
axis = callPackage ../development/libraries/axis { };