summary refs log tree commit diff
path: root/pkgs/development/libraries/libsamplerate
diff options
context:
space:
mode:
authorJason \"Don\" O'Conal <lovek323@gmail.com>2013-07-04 14:59:41 +1000
committerRok Garbas <rok@garbas.si>2013-07-12 16:26:45 +0200
commit3a1a7b2d6ab4509453f211125ab7d76018e95ca3 (patch)
tree3447edde5be3386743fb6f5a9e44e9f21bd5276e /pkgs/development/libraries/libsamplerate
parentc449a67e0176b5fc0027ace17d6d6b58a5b43b0c (diff)
downloadnixlib-3a1a7b2d6ab4509453f211125ab7d76018e95ca3.tar
nixlib-3a1a7b2d6ab4509453f211125ab7d76018e95ca3.tar.gz
nixlib-3a1a7b2d6ab4509453f211125ab7d76018e95ca3.tar.bz2
nixlib-3a1a7b2d6ab4509453f211125ab7d76018e95ca3.tar.lz
nixlib-3a1a7b2d6ab4509453f211125ab7d76018e95ca3.tar.xz
nixlib-3a1a7b2d6ab4509453f211125ab7d76018e95ca3.tar.zst
nixlib-3a1a7b2d6ab4509453f211125ab7d76018e95ca3.zip
libsamplerate: fix build on darwin
* build with gccApple
* add Carbon include path
Diffstat (limited to 'pkgs/development/libraries/libsamplerate')
-rw-r--r--pkgs/development/libraries/libsamplerate/default.nix19
1 files changed, 12 insertions, 7 deletions
diff --git a/pkgs/development/libraries/libsamplerate/default.nix b/pkgs/development/libraries/libsamplerate/default.nix
index 17f06e46711c..3b7434dc9fbf 100644
--- a/pkgs/development/libraries/libsamplerate/default.nix
+++ b/pkgs/development/libraries/libsamplerate/default.nix
@@ -15,14 +15,19 @@ stdenv.mkDerivation rec {
   #--disable-fftw          disable usage of FFTW
   #--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";
-    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:
-    license = [
-      "GPL"
-      # http://www.mega-nerd.com/SRC/libsamplerate-cul.pdf
-      "libsamplerate Commercial Use License"
-    ];
+    # GPL or a commercial-use license (available at
+    # http://www.mega-nerd.com/SRC/libsamplerate-cul.pdf)
+    licenses    = with licenses; [ gpl unfree ];
+    maintainers = with maintainers; [ lovek323 ];
+    platforms   = platforms.all;
   };
 }