From 63644513486213a25d31226856158a4a77fc21cd Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 7 Jun 2015 14:37:03 +0200 Subject: Patched jack2 (no dbus) --- bragi.nix | 2 +- jack2.nix | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 jack2.nix diff --git a/bragi.nix b/bragi.nix index 59cc264b..d77bc991 100644 --- a/bragi.nix +++ b/bragi.nix @@ -29,9 +29,9 @@ git mosh rsync - jack1 tmux nfs-utils + (callPackage ./jack2.nix {}) ]; # List services that you want to enable: diff --git a/jack2.nix b/jack2.nix new file mode 100644 index 00000000..289a3986 --- /dev/null +++ b/jack2.nix @@ -0,0 +1,45 @@ +{ stdenv, fetchurl, alsaLib, expat, libsamplerate +, libsndfile, makeWrapper, pkgconfig, python +, firewireSupport ? false, ffado ? null, bash }: + +assert firewireSupport -> ffado != null; + +stdenv.mkDerivation rec { + name = "jack2-${version}"; + version = "1.9.10"; + + src = fetchurl { + urls = [ + https://github.com/jackaudio/jack2/archive/v1.9.10.tar.gz + ]; + sha256 = "03b0iiyk3ng3vh5s8gaqwn565vik7910p56mlbk512bw3dhbdwc8"; + }; + + buildInputs = + [ alsaLib dbus expat libsamplerate libsndfile makeWrapper + pkgconfig python pythonDBus + ] ++ (stdenv.lib.optional firewireSupport ffado); + + patchPhase = '' + substituteInPlace svnversion_regenerate.sh --replace /bin/bash ${bash}/bin/bash + ''; + + configurePhase = '' + python waf configure --prefix=$out --alsa ${if firewireSupport then "--firewire" else ""} + ''; + + buildPhase = "python waf build"; + + installPhase = '' + python waf install + wrapProgram $out/bin/jack_control --set PYTHONPATH $PYTHONPATH + ''; + + meta = with stdenv.lib; { + description = "JACK audio connection kit, version 2 with jackdbus"; + homepage = "http://jackaudio.org"; + license = licenses.gpl2Plus; + platforms = platforms.linux; + maintainers = [ maintainers.goibhniu ]; + }; +} -- cgit v1.2.3