libsamplerate: fix build on darwin
* build with gccApple * add Carbon include path
This commit is contained in:
parent
c449a67e01
commit
3a1a7b2d6a
@ -15,14 +15,19 @@ stdenv.mkDerivation rec {
|
|||||||
#--disable-fftw disable usage of FFTW
|
#--disable-fftw disable usage of FFTW
|
||||||
#--disable-cpu-clip disable tricky cpu specific clipper
|
#--disable-cpu-clip disable tricky cpu specific clipper
|
||||||
|
|
||||||
meta = {
|
# need headers from the Carbon.framework in /System/Library/Frameworks to
|
||||||
|
# compile this on darwin -- not sure how to handle
|
||||||
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin
|
||||||
|
"-I/System/Library/Frameworks/Carbon.framework/Versions/A/Headers";
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
description = "Sample Rate Converter for audio";
|
description = "Sample Rate Converter for audio";
|
||||||
homepage = http://www.mega-nerd.com/SRC/index.html;
|
homepage = http://www.mega-nerd.com/SRC/index.html;
|
||||||
# you can choose one of the following licenses:
|
# you can choose one of the following licenses:
|
||||||
license = [
|
# GPL or a commercial-use license (available at
|
||||||
"GPL"
|
# http://www.mega-nerd.com/SRC/libsamplerate-cul.pdf)
|
||||||
# http://www.mega-nerd.com/SRC/libsamplerate-cul.pdf
|
licenses = with licenses; [ gpl unfree ];
|
||||||
"libsamplerate Commercial Use License"
|
maintainers = with maintainers; [ lovek323 ];
|
||||||
];
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -4618,7 +4618,11 @@ let
|
|||||||
libre = callPackage ../development/libraries/libre {};
|
libre = callPackage ../development/libraries/libre {};
|
||||||
librem = callPackage ../development/libraries/librem {};
|
librem = callPackage ../development/libraries/librem {};
|
||||||
|
|
||||||
libsamplerate = callPackage ../development/libraries/libsamplerate { };
|
libsamplerate = callPackage ../development/libraries/libsamplerate {
|
||||||
|
stdenv = if stdenv.isDarwin
|
||||||
|
then overrideGCC stdenv gccApple
|
||||||
|
else stdenv;
|
||||||
|
};
|
||||||
|
|
||||||
libspectre = callPackage ../development/libraries/libspectre { };
|
libspectre = callPackage ../development/libraries/libspectre { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user