Author: cillian
Date: Sun Apr  8 00:16:59 2012
New Revision: 33666
URL: https://nixos.org/websvn/nix/?rev=33666&sc=1

Log:
Updating to 0.121.3, adding optional FireWire support and replacing 
composableDerivation with mkDerivation

Modified:
   nixpkgs/trunk/pkgs/misc/jackaudio/jack1.nix

Modified: nixpkgs/trunk/pkgs/misc/jackaudio/jack1.nix
==============================================================================
--- nixpkgs/trunk/pkgs/misc/jackaudio/jack1.nix Sun Apr  8 00:00:03 2012        
(r33665)
+++ nixpkgs/trunk/pkgs/misc/jackaudio/jack1.nix Sun Apr  8 00:16:59 2012        
(r33666)
@@ -1,44 +1,26 @@
-# Perhaps we can get some ideas from here ? http://gentoo-wiki.com/HOWTO_Jack
-# still much to test but it compiles now
+{ stdenv, fetchurl, pkgconfig, alsaLib
+, firewireSupport ? false, ffado ? null }:
 
-{ composableDerivation, fetchurl, pkgconfig, alsaLib }:
+assert firewireSupport -> ffado != null;
 
-let inherit (composableDerivation) edf; in
+stdenv.mkDerivation rec {
+  name = "jack-${version}";
+  version = "0.121.3";
 
-composableDerivation.composableDerivation {} {
-  name = "jack-0.120.1";
-  
   src = fetchurl {
-    url = 
"http://jackaudio.org/downloads/jack-audio-connection-kit-0.120.1.tar.gz";;
-    sha256 = "02h8536c67059gq2vsl323kvy9jak9dp0syi1h58awlkbgzlg80d";
+    url = 
"http://jackaudio.org/downloads/jack-audio-connection-kit-${version}.tar.gz";;
+    sha256 = "1ypa3gjwy4vmaskin0vczmmdwybckkl42wmkfabx3v5yx8yms2dp";
   };
   
-  buildInputs = [ pkgconfig ];
-  
-  flags =
-      # FIXME: tidy up
-       edf { name = "posix-shm"; } #use POSIX shm API
-    // edf { name = "timestamps"; }                      # allow clients to 
use the JACK timestamp API
-    // edf { name = "capabilities"; }                   #use libcap to gain 
realtime scheduling priviledges
-    // edf { name = "oldtrans"; }                      #remove old transport 
interfaces
-    // edf { name = "stripped-jackd"; }                 #strip jack before 
computing its md5 sum
-    // edf { name = "portaudio"; }                     #ignore PortAudio driver
-    // edf { name = "coreaudio"; }                     #ignore CoreAudio driver
-    // edf { name = "oss"; }                           #ignore OSS driver
-    // edf { name = "freebob"; }                       #ignore FreeBob driver
-    // edf { name = "alsa"; enable = { buildInputs = [ alsaLib ]; }; };
+  preBuild = "echo ok";
 
-  cfg = {
-    posix_shmSupport = true;
-    timestampsSupport = true;
-    alsaSupport = true;
-  };
-  
-  # make sure the jackaudio is found by symlinking lib64 to lib
-  postInstall = ''
-    mkdir -p $out/lib
-    ln -s $out/lib{64,}/pkgconfig
+  configureFlags = ''
+    ${if firewireSupport then "--enable-firewire" else ""}
   '';
+
+  buildInputs = 
+    [ pkgconfig alsaLib
+    ] ++ (stdenv.lib.optional firewireSupport ffado);
   
   meta = {
     description = "JACK audio connection kit";
_______________________________________________
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to