2011-05-09 22:49:51 +02:00
|
|
|
# Perhaps we can get some ideas from here ? http://gentoo-wiki.com/HOWTO_Jack
|
|
|
|
# still much to test but it compiles now
|
|
|
|
|
|
|
|
{ composableDerivation, fetchurl, pkgconfig, alsaLib }:
|
|
|
|
|
|
|
|
let inherit (composableDerivation) edf; in
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
|
|
|
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 ]; }; };
|
|
|
|
|
|
|
|
cfg = {
|
|
|
|
posix_shmSupport = true;
|
|
|
|
timestampsSupport = true;
|
|
|
|
alsaSupport = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# make sure the jackaudio is found by symlinking lib64 to lib
|
|
|
|
postInstall = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/lib
|
2011-05-09 22:49:51 +02:00
|
|
|
ln -s $out/lib{64,}/pkgconfig
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "JACK audio connection kit";
|
|
|
|
homepage = "http://jackaudio.org";
|
|
|
|
license = "GPL";
|
|
|
|
};
|
|
|
|
}
|