2008-12-20 02:20:35 +01:00
|
|
|
# Perhaps we can get some ideas from here ? http://gentoo-wiki.com/HOWTO_Jack
|
2007-10-04 00:38:09 +02:00
|
|
|
# still much to test but it compiles now
|
2010-07-28 20:01:17 +02:00
|
|
|
|
|
|
|
{ composableDerivation, fetchurl, pkgconfig, alsaLib }:
|
|
|
|
|
|
|
|
let inherit (composableDerivation) edf; in
|
|
|
|
|
|
|
|
composableDerivation.composableDerivation {} {
|
2011-04-23 14:50:03 +02:00
|
|
|
name = "jack-0.120.1";
|
2010-07-28 20:01:17 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-04-23 14:50:03 +02:00
|
|
|
url = "mirror://sourceforge/jackit/jack-audio-connection-kit-0.120.1.tar.gz";
|
|
|
|
sha256 = "02h8536c67059gq2vsl323kvy9jak9dp0syi1h58awlkbgzlg80d";
|
2010-07-28 20:01:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pkgconfig ];
|
|
|
|
|
2009-03-07 00:21:28 +01:00
|
|
|
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
|
2010-07-28 20:01:17 +02:00
|
|
|
// edf { name = "alsa"; enable = { buildInputs = [ alsaLib ]; }; };
|
2008-12-20 02:20:35 +01:00
|
|
|
|
2009-03-07 00:21:28 +01:00
|
|
|
cfg = {
|
|
|
|
posix_shmSupport = true;
|
|
|
|
timestampsSupport = true;
|
|
|
|
alsaSupport = true;
|
|
|
|
};
|
2010-07-28 20:01:17 +02:00
|
|
|
|
2009-09-21 11:58:24 +02:00
|
|
|
# make sure the jackaudio is found by symlinking lib64 to lib
|
|
|
|
postInstall = ''
|
|
|
|
ensureDir $out/lib
|
|
|
|
ln -s $out/lib{64,}/pkgconfig
|
|
|
|
'';
|
2010-07-28 20:01:17 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "JACK audio connection kit";
|
|
|
|
homepage = "http://jackaudio.org";
|
|
|
|
license = "GPL";
|
|
|
|
};
|
2008-12-20 02:20:35 +01:00
|
|
|
}
|