tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
suil: remove qt4 support
Sandro Jäckel
3 years ago
84e9e1a7
d26912d7
+3
-19
2 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
audio
suil
default.nix
top-level
all-packages.nix
+3
-9
pkgs/development/libraries/audio/suil/default.nix
···
1
1
{ stdenv, lib, fetchurl, gtk2, lv2, pkg-config, python3, serd, sord, sratom
2
2
, wafHook
3
3
-
, withQt4 ? true, qt4 ? null
4
4
-
, withQt5 ? false, qt5 ? null }:
5
5
-
6
6
-
# I haven't found an XOR operator in nix...
7
7
-
assert withQt4 || withQt5;
8
8
-
assert !(withQt4 && withQt5);
3
3
+
, withQt5 ? true, qt5 ? null
4
4
+
}:
9
5
10
6
stdenv.mkDerivation rec {
11
7
pname = "suil";
12
8
version = "0.10.6";
13
13
-
name = "${pname}-qt${if withQt4 then "4" else "5"}-${version}";
14
9
15
10
src = fetchurl {
16
11
url = "https://download.drobilla.net/${pname}-${version}.tar.bz2";
···
19
14
20
15
nativeBuildInputs = [ pkg-config wafHook python3 ];
21
16
buildInputs = [ gtk2 lv2 serd sord sratom ]
22
22
-
++ (lib.optionals withQt4 [ qt4 ])
23
23
-
++ (lib.optionals withQt5 (with qt5; [ qtbase qttools ]));
17
17
+
++ lib.optionals withQt5 (with qt5; [ qtbase qttools ]);
24
18
25
19
dontWrapQtApps = true;
26
20
-10
pkgs/top-level/all-packages.nix
···
22786
22786
22787
22787
suil = callPackage ../development/libraries/audio/suil { };
22788
22788
22789
22789
-
suil-qt5 = suil.override {
22790
22790
-
withQt4 = false;
22791
22791
-
withQt5 = true;
22792
22792
-
};
22793
22793
-
suil-qt4 = suil.override {
22794
22794
-
withQt4 = true;
22795
22795
-
withQt5 = false;
22796
22796
-
};
22797
22797
-
22798
22789
sundials = callPackage ../development/libraries/sundials {
22799
22790
python = python3;
22800
22791
};
···
27552
27543
27553
27544
audacity = callPackage ../applications/audio/audacity {
27554
27545
inherit (darwin.apple_sdk.frameworks) AppKit AudioToolbox AudioUnit Carbon CoreAudio CoreAudioKit CoreServices;
27555
27555
-
suil = suil-qt5;
27556
27546
};
27557
27547
27558
27548
audio-recorder = callPackage ../applications/audio/audio-recorder { };