tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
faust: replace qt4 with qt5
Bart Brouns
2 years ago
d58c684e
e40b5250
+69
-12
4 changed files
expand all
collapse all
unified
split
pkgs
applications
audio
faust
faust2alqt.nix
faust2jaqt.nix
faust2lv2.nix
top-level
all-packages.nix
+29
-3
pkgs/applications/audio/faust/faust2alqt.nix
···
1
1
{ faust
2
2
, alsa-lib
3
3
-
, qt4
3
3
+
, qtbase
4
4
+
, writeText
5
5
+
, makeWrapper
4
6
}:
5
5
-
7
7
+
let
8
8
+
# Wrap the binary coming out of the the compilation script, so it knows QT_PLUGIN_PATH
9
9
+
wrapBinary = writeText "wrapBinary" ''
10
10
+
source ${makeWrapper}/nix-support/setup-hook
11
11
+
for p in $FILES; do
12
12
+
workpath=$PWD
13
13
+
cd -- "$(dirname "$p")"
14
14
+
binary=$(basename --suffix=.dsp "$p")
15
15
+
rm -f .$binary-wrapped
16
16
+
wrapProgram $binary --set QT_PLUGIN_PATH "${qtbase}/${qtbase.qtPluginPrefix}"
17
17
+
sed -i $binary -e 's@exec@cd "$(dirname "$(readlink -f "''${BASH_SOURCE[0]}")")" \&\& exec@g'
18
18
+
cd $workpath
19
19
+
done
20
20
+
'';
21
21
+
in
6
22
faust.wrapWithBuildEnv {
7
23
8
24
baseName = "faust2alqt";
9
25
10
26
propagatedBuildInputs = [
11
27
alsa-lib
12
12
-
qt4
28
28
+
qtbase
13
29
];
14
30
31
31
+
dontWrapQtApps = true;
32
32
+
33
33
+
preFixup = ''
34
34
+
for script in "$out"/bin/*; do
35
35
+
# append the wrapping code to the compilation script
36
36
+
cat ${wrapBinary} >> $script
37
37
+
# prevent the qmake error when running the script
38
38
+
sed -i "/QMAKE=/c\ QMAKE="${qtbase.dev}/bin/qmake"" $script
39
39
+
done
40
40
+
'';
15
41
}
+30
-3
pkgs/applications/audio/faust/faust2jaqt.nix
···
1
1
{ faust
2
2
, jack2
3
3
-
, qt4
3
3
+
, qtbase
4
4
, libsndfile
5
5
, alsa-lib
6
6
+
, writeText
7
7
+
, makeWrapper
6
8
, which
7
9
}:
8
8
-
10
10
+
let
11
11
+
# Wrap the binary coming out of the the compilation script, so it knows QT_PLUGIN_PATH
12
12
+
wrapBinary = writeText "wrapBinary" ''
13
13
+
source ${makeWrapper}/nix-support/setup-hook
14
14
+
for p in $FILES; do
15
15
+
workpath=$PWD
16
16
+
cd -- "$(dirname "$p")"
17
17
+
binary=$(basename --suffix=.dsp "$p")
18
18
+
rm -f .$binary-wrapped
19
19
+
wrapProgram $binary --set QT_PLUGIN_PATH "${qtbase}/${qtbase.qtPluginPrefix}"
20
20
+
sed -i $binary -e 's@exec@cd "$(dirname "$(readlink -f "''${BASH_SOURCE[0]}")")" \&\& exec@g'
21
21
+
cd $workpath
22
22
+
done
23
23
+
'';
24
24
+
in
9
25
faust.wrapWithBuildEnv {
10
26
11
27
baseName = "faust2jaqt";
···
17
33
18
34
propagatedBuildInputs = [
19
35
jack2
20
20
-
qt4
36
36
+
qtbase
21
37
libsndfile
22
38
alsa-lib
23
39
which
24
40
];
25
41
42
42
+
43
43
+
dontWrapQtApps = true;
44
44
+
45
45
+
preFixup = ''
46
46
+
for script in "$out"/bin/*; do
47
47
+
# append the wrapping code to the compilation script
48
48
+
cat ${wrapBinary} >> $script
49
49
+
# prevent the qmake error when running the script
50
50
+
sed -i "/QMAKE=/c\ QMAKE="${qtbase.dev}/bin/qmake"" $script
51
51
+
done
52
52
+
'';
26
53
}
+7
-3
pkgs/applications/audio/faust/faust2lv2.nix
···
1
1
{ boost
2
2
, faust
3
3
, lv2
4
4
-
, qt4
4
4
+
, qtbase
5
5
, which
6
6
-
7
6
}:
8
7
9
8
faust.wrapWithBuildEnv {
10
9
11
10
baseName = "faust2lv2";
12
11
13
13
-
propagatedBuildInputs = [ boost lv2 qt4 which ];
12
12
+
propagatedBuildInputs = [ boost lv2 qtbase ];
14
13
14
14
+
dontWrapQtApps = true;
15
15
+
16
16
+
preFixup = ''
17
17
+
sed -i "/QMAKE=/c\ QMAKE="${qtbase.dev}/bin/qmake"" "$out"/bin/faust2lv2;
18
18
+
'';
15
19
}
+3
-3
pkgs/top-level/all-packages.nix
···
37850
37850
37851
37851
faust2 = callPackage ../applications/audio/faust/faust2.nix { };
37852
37852
37853
37853
-
faust2alqt = callPackage ../applications/audio/faust/faust2alqt.nix { };
37853
37853
+
faust2alqt = libsForQt5.callPackage ../applications/audio/faust/faust2alqt.nix { };
37854
37854
37855
37855
faust2alsa = callPackage ../applications/audio/faust/faust2alsa.nix { };
37856
37856
···
37862
37862
37863
37863
faust2jackrust = callPackage ../applications/audio/faust/faust2jackrust.nix { };
37864
37864
37865
37865
-
faust2jaqt = callPackage ../applications/audio/faust/faust2jaqt.nix { };
37865
37865
+
faust2jaqt = libsForQt5.callPackage ../applications/audio/faust/faust2jaqt.nix { };
37866
37866
37867
37867
faust2ladspa = callPackage ../applications/audio/faust/faust2ladspa.nix { };
37868
37868
37869
37869
-
faust2lv2 = callPackage ../applications/audio/faust/faust2lv2.nix { };
37869
37869
+
faust2lv2 = libsForQt5.callPackage ../applications/audio/faust/faust2lv2.nix { };
37870
37870
37871
37871
faustlive = callPackage ../applications/audio/faust/faustlive.nix { };
37872
37872