summaryrefslogtreecommitdiffstats
path: root/pkgs/misc/jackaudio
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2016-11-02 14:54:25 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2016-11-02 14:54:48 +0100
commit84174c0cb8b9fdc40ef5390ad07c4f1633db38ae (patch)
treeee62f379bc86e0b65474a2d7f2fd4fd6190fd9c0 /pkgs/misc/jackaudio
parentb806e14a3ced762ec2b0ce162c75d400f312e897 (diff)
libjack2Unstable: and remove the old file
that I forgot to stage.
Diffstat (limited to 'pkgs/misc/jackaudio')
-rw-r--r--pkgs/misc/jackaudio/unstable.git79
1 files changed, 0 insertions, 79 deletions
diff --git a/pkgs/misc/jackaudio/unstable.git b/pkgs/misc/jackaudio/unstable.git
deleted file mode 100644
index 1f8a41da32fe..000000000000
--- a/pkgs/misc/jackaudio/unstable.git
+++ /dev/null
@@ -1,79 +0,0 @@
-{ stdenv, fetchFromGitHub, pkgconfig, python2Packages, makeWrapper
-, bash, libsamplerate, libsndfile, readline, eigen, celt
-
-# Optional Dependencies
-, dbus ? null, libffado ? null, alsaLib ? null
-, libopus ? null
-
-# Extra options
-, prefix ? ""
-}:
-
-with stdenv.lib;
-let
- inherit (python2Packages) python dbus-python;
- shouldUsePkg = pkg: if pkg != null && stdenv.lib.any (x: x == stdenv.system) pkg.meta.platforms then pkg else null;
-
- libOnly = prefix == "lib";
-
- optDbus = shouldUsePkg dbus;
- optPythonDBus = if libOnly then null else shouldUsePkg dbus-python;
- optLibffado = if libOnly then null else shouldUsePkg libffado;
- optAlsaLib = if libOnly then null else shouldUsePkg alsaLib;
- optLibopus = shouldUsePkg libopus;
-in
-stdenv.mkDerivation rec {
- name = "${prefix}jack2-unstable-${version}";
- version = "2016-08-18";
-
- src = fetchFromGitHub {
- owner = "jackaudio";
- repo = "jack2";
- rev = "f2ece2418c875eb7e7ac3d25fbb484ddda47ab46";
- sha256 = "0cvb0m6qz3k8a5njwyw65l4y3izi2rsh512hv5va97kjc6wzzx4j";
- };
-
- nativeBuildInputs = [ pkgconfig python makeWrapper ];
- buildInputs = [
- python
-
- libsamplerate libsndfile readline eigen celt
-
- optDbus optPythonDBus optLibffado optAlsaLib optLibopus
- ];
-
- patchPhase = ''
- substituteInPlace svnversion_regenerate.sh --replace /bin/bash ${bash}/bin/bash
- '';
-
- configurePhase = ''
- python waf configure --prefix=$out \
- ${optionalString (optDbus != null) "--dbus"} \
- --classic \
- --profile \
- ${optionalString (optLibffado != null) "--firewire"} \
- ${optionalString (optAlsaLib != null) "--alsa"} \
- --autostart=${if (optDbus != null) then "dbus" else "classic"} \
- '';
-
- buildPhase = ''
- python waf build
- '';
-
- installPhase = ''
- python waf install
- '' + (if libOnly then ''
- rm -rf $out/{bin,share}
- rm -rf $out/lib/{jack,libjacknet*,libjackserver*}
- '' else ''
- wrapProgram $out/bin/jack_control --set PYTHONPATH $PYTHONPATH
- '');
-
- meta = {
- description = "JACK audio connection kit, version 2 with jackdbus";
- homepage = "http://jackaudio.org";
- license = licenses.gpl2Plus;
- platforms = platforms.unix;
- maintainers = with maintainers; [ goibhniu wkennington ];
- };
-}