tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
jackaudio: 1.9.10 -> 1.9.11-RC1
Bart Brouns
8 years ago
9d044143
11b11354
+8
-121
5 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
libsoundio
default.nix
misc
jackaudio
default.nix
jack-gcc5.patch
unstable.nix
top-level
all-packages.nix
+2
-2
pkgs/development/libraries/libsoundio/default.nix
···
1
1
-
{ stdenv, fetchFromGitHub, cmake, alsaLib, libjack2Unstable, libpulseaudio }:
1
1
+
{ stdenv, fetchFromGitHub, cmake, alsaLib, libjack2, libpulseaudio }:
2
2
3
3
stdenv.mkDerivation rec {
4
4
version = "1.1.0";
···
11
11
sha256 = "0mw197l4bci1cjc2z877gxwsvk8r43dr7qiwci2hwl2cjlcnqr2p";
12
12
};
13
13
14
14
-
buildInputs = [ cmake alsaLib libjack2Unstable libpulseaudio ];
14
14
+
buildInputs = [ cmake alsaLib libjack2 libpulseaudio ];
15
15
16
16
meta = with stdenv.lib; {
17
17
description = "Cross platform audio input and output";
+6
-14
pkgs/misc/jackaudio/default.nix
···
1
1
-
{ stdenv, fetchFromGitHub, fetchpatch, pkgconfig, python2Packages, makeWrapper
2
2
-
, bash, libsamplerate, libsndfile, readline
1
1
+
{ stdenv, fetchFromGitHub, pkgconfig, python2Packages, makeWrapper
2
2
+
, bash, libsamplerate, libsndfile, readline, eigen, celt
3
3
4
4
# Optional Dependencies
5
5
, dbus ? null, libffado ? null, alsaLib ? null
···
24
24
in
25
25
stdenv.mkDerivation rec {
26
26
name = "${prefix}jack2-${version}";
27
27
-
version = "1.9.10";
27
27
+
version = "1.9.11-RC1";
28
28
29
29
src = fetchFromGitHub {
30
30
owner = "jackaudio";
31
31
repo = "jack2";
32
32
rev = "v${version}";
33
33
-
sha256 = "1a2213l7x6sgqg2hq3yhnpvvvqyskhsmx8j3z0jgjsqwz9xa3wbr";
33
33
+
sha256 = "0i708ar3ll5p8yj0h7ffg84nrn49ap47l2yy75rxyw30cyywhxp4";
34
34
};
35
35
36
36
nativeBuildInputs = [ pkgconfig python makeWrapper ];
37
37
-
buildInputs = [ python libsamplerate libsndfile readline
37
37
+
buildInputs = [ python libsamplerate libsndfile readline eigen celt
38
38
optDbus optPythonDBus optLibffado optAlsaLib optLibopus
39
39
];
40
40
41
41
-
prePatch = ''
41
41
+
patchPhase = ''
42
42
substituteInPlace svnversion_regenerate.sh --replace /bin/bash ${bash}/bin/bash
43
43
'';
44
44
-
45
45
-
patches = [
46
46
-
./jack-gcc5.patch
47
47
-
(fetchpatch {
48
48
-
url = "https://github.com/jackaudio/jack2/commit/ff1ed2c4524095055140370c1008a2d9cccc5645.patch";
49
49
-
sha256 = "0vywakbmlskvs9ginij9ilk39wjyzg7w6cf1qxp11hb0hj69fir5";
50
50
-
})
51
51
-
];
52
44
53
45
configurePhase = ''
54
46
python waf configure --prefix=$out \
-26
pkgs/misc/jackaudio/jack-gcc5.patch
···
1
1
-
From d3c8e2d8d78899fba40a3e677ed4dbe388d82269 Mon Sep 17 00:00:00 2001
2
2
-
From: Adrian Knoth <adi@drcomp.erfurt.thur.de>
3
3
-
Date: Thu, 18 Sep 2014 18:29:23 +0200
4
4
-
Subject: [PATCH] Fix FTBFS with clang++
5
5
-
6
6
-
Forwarded from http://bugs.debian.org/757820
7
7
-
---
8
8
-
common/memops.c | 2 +-
9
9
-
1 file changed, 1 insertion(+), 1 deletion(-)
10
10
-
11
11
-
diff --git a/common/memops.c b/common/memops.c
12
12
-
index 27f6194..2d416b6 100644
13
13
-
--- a/common/memops.c
14
14
-
+++ b/common/memops.c
15
15
-
@@ -198,7 +198,7 @@ static inline __m128i float_24_sse(__m128 s)
16
16
-
*/
17
17
-
static unsigned int seed = 22222;
18
18
-
19
19
-
-inline unsigned int fast_rand() {
20
20
-
+static inline unsigned int fast_rand() {
21
21
-
seed = (seed * 96314165) + 907633515;
22
22
-
return seed;
23
23
-
}
24
24
-
--
25
25
-
2.4.0
26
26
-
-78
pkgs/misc/jackaudio/unstable.nix
···
1
1
-
{ stdenv, fetchFromGitHub, pkgconfig, python2Packages, makeWrapper
2
2
-
, bash, libsamplerate, libsndfile, readline, eigen, celt
3
3
-
4
4
-
# Optional Dependencies
5
5
-
, dbus ? null, libffado ? null, alsaLib ? null
6
6
-
, libopus ? null
7
7
-
8
8
-
# Extra options
9
9
-
, prefix ? ""
10
10
-
}:
11
11
-
12
12
-
with stdenv.lib;
13
13
-
let
14
14
-
inherit (python2Packages) python dbus-python;
15
15
-
shouldUsePkg = pkg: if pkg != null && stdenv.lib.any (x: x == stdenv.system) pkg.meta.platforms then pkg else null;
16
16
-
17
17
-
libOnly = prefix == "lib";
18
18
-
19
19
-
optDbus = shouldUsePkg dbus;
20
20
-
optPythonDBus = if libOnly then null else shouldUsePkg dbus-python;
21
21
-
optLibffado = if libOnly then null else shouldUsePkg libffado;
22
22
-
optAlsaLib = if libOnly then null else shouldUsePkg alsaLib;
23
23
-
optLibopus = shouldUsePkg libopus;
24
24
-
in
25
25
-
stdenv.mkDerivation rec {
26
26
-
name = "${prefix}jack2-unstable-${version}";
27
27
-
version = "2017-02-23";
28
28
-
29
29
-
src = fetchFromGitHub {
30
30
-
owner = "jackaudio";
31
31
-
repo = "jack2";
32
32
-
rev = "4cf826c82c8f865c281833f92f8182d457277b3a";
33
33
-
sha256 = "100pkc324m57ci3fb99d3api6wh6g58lya6ssly9hxyhdsa3i7bk";
34
34
-
};
35
35
-
36
36
-
nativeBuildInputs = [ pkgconfig python makeWrapper ];
37
37
-
buildInputs = [
38
38
-
python
39
39
-
40
40
-
libsamplerate libsndfile readline eigen celt
41
41
-
42
42
-
optDbus optPythonDBus optLibffado optAlsaLib optLibopus
43
43
-
];
44
44
-
45
45
-
patchPhase = ''
46
46
-
substituteInPlace svnversion_regenerate.sh --replace /bin/bash ${bash}/bin/bash
47
47
-
'';
48
48
-
49
49
-
configurePhase = ''
50
50
-
python waf configure --prefix=$out \
51
51
-
${optionalString (optDbus != null) "--dbus"} \
52
52
-
--classic \
53
53
-
${optionalString (optLibffado != null) "--firewire"} \
54
54
-
${optionalString (optAlsaLib != null) "--alsa"} \
55
55
-
--autostart=${if (optDbus != null) then "dbus" else "classic"} \
56
56
-
'';
57
57
-
58
58
-
buildPhase = ''
59
59
-
python waf build
60
60
-
'';
61
61
-
62
62
-
installPhase = ''
63
63
-
python waf install
64
64
-
'' + (if libOnly then ''
65
65
-
rm -rf $out/{bin,share}
66
66
-
rm -rf $out/lib/{jack,libjacknet*,libjackserver*}
67
67
-
'' else ''
68
68
-
wrapProgram $out/bin/jack_control --set PYTHONPATH $PYTHONPATH
69
69
-
'');
70
70
-
71
71
-
meta = {
72
72
-
description = "JACK audio connection kit, version 2 with jackdbus";
73
73
-
homepage = "http://jackaudio.org";
74
74
-
license = licenses.gpl2Plus;
75
75
-
platforms = platforms.unix;
76
76
-
maintainers = with maintainers; [ goibhniu wkennington ];
77
77
-
};
78
78
-
}
-1
pkgs/top-level/all-packages.nix
···
18380
18380
libopus = libopus.override { withCustomModes = true; };
18381
18381
};
18382
18382
libjack2 = jack2Full.override { prefix = "lib"; };
18383
18383
-
libjack2Unstable = callPackage ../misc/jackaudio/unstable.nix { };
18384
18383
18385
18384
keynav = callPackage ../tools/X11/keynav { };
18386
18385