Merge pull request #215561 from magnetophon/faust_QT5

faust: replace qt4 with qt5

authored by Weijia Wang and committed by GitHub e64b8e89 38616ad5

+132 -76
+29 -3
pkgs/applications/audio/faust/faust2alqt.nix
··· 1 1 { faust 2 2 , alsa-lib 3 - , qt4 3 + , qtbase 4 + , writeText 5 + , makeWrapper 4 6 }: 5 - 7 + let 8 + # Wrap the binary coming out of the the compilation script, so it knows QT_PLUGIN_PATH 9 + wrapBinary = writeText "wrapBinary" '' 10 + source ${makeWrapper}/nix-support/setup-hook 11 + for p in $FILES; do 12 + workpath=$PWD 13 + cd -- "$(dirname "$p")" 14 + binary=$(basename --suffix=.dsp "$p") 15 + rm -f .$binary-wrapped 16 + wrapProgram $binary --set QT_PLUGIN_PATH "${qtbase}/${qtbase.qtPluginPrefix}" 17 + sed -i $binary -e 's@exec@cd "$(dirname "$(readlink -f "''${BASH_SOURCE[0]}")")" \&\& exec@g' 18 + cd $workpath 19 + done 20 + ''; 21 + in 6 22 faust.wrapWithBuildEnv { 7 23 8 24 baseName = "faust2alqt"; 9 25 10 26 propagatedBuildInputs = [ 11 27 alsa-lib 12 - qt4 28 + qtbase 13 29 ]; 14 30 31 + dontWrapQtApps = true; 32 + 33 + preFixup = '' 34 + for script in "$out"/bin/*; do 35 + # append the wrapping code to the compilation script 36 + cat ${wrapBinary} >> $script 37 + # prevent the qmake error when running the script 38 + sed -i "/QMAKE=/c\ QMAKE="${qtbase.dev}/bin/qmake"" $script 39 + done 40 + ''; 15 41 }
+30 -3
pkgs/applications/audio/faust/faust2jaqt.nix
··· 1 1 { faust 2 2 , jack2 3 - , qt4 3 + , qtbase 4 4 , libsndfile 5 5 , alsa-lib 6 + , writeText 7 + , makeWrapper 6 8 , which 7 9 }: 8 - 10 + let 11 + # Wrap the binary coming out of the the compilation script, so it knows QT_PLUGIN_PATH 12 + wrapBinary = writeText "wrapBinary" '' 13 + source ${makeWrapper}/nix-support/setup-hook 14 + for p in $FILES; do 15 + workpath=$PWD 16 + cd -- "$(dirname "$p")" 17 + binary=$(basename --suffix=.dsp "$p") 18 + rm -f .$binary-wrapped 19 + wrapProgram $binary --set QT_PLUGIN_PATH "${qtbase}/${qtbase.qtPluginPrefix}" 20 + sed -i $binary -e 's@exec@cd "$(dirname "$(readlink -f "''${BASH_SOURCE[0]}")")" \&\& exec@g' 21 + cd $workpath 22 + done 23 + ''; 24 + in 9 25 faust.wrapWithBuildEnv { 10 26 11 27 baseName = "faust2jaqt"; ··· 17 33 18 34 propagatedBuildInputs = [ 19 35 jack2 20 - qt4 36 + qtbase 21 37 libsndfile 22 38 alsa-lib 23 39 which 24 40 ]; 25 41 42 + 43 + dontWrapQtApps = true; 44 + 45 + preFixup = '' 46 + for script in "$out"/bin/*; do 47 + # append the wrapping code to the compilation script 48 + cat ${wrapBinary} >> $script 49 + # prevent the qmake error when running the script 50 + sed -i "/QMAKE=/c\ QMAKE="${qtbase.dev}/bin/qmake"" $script 51 + done 52 + ''; 26 53 }
+7 -3
pkgs/applications/audio/faust/faust2lv2.nix
··· 1 1 { boost 2 2 , faust 3 3 , lv2 4 - , qt4 4 + , qtbase 5 5 , which 6 - 7 6 }: 8 7 9 8 faust.wrapWithBuildEnv { 10 9 11 10 baseName = "faust2lv2"; 12 11 13 - propagatedBuildInputs = [ boost lv2 qt4 which ]; 12 + propagatedBuildInputs = [ boost lv2 qtbase ]; 14 13 14 + dontWrapQtApps = true; 15 + 16 + preFixup = '' 17 + sed -i "/QMAKE=/c\ QMAKE="${qtbase.dev}/bin/qmake"" "$out"/bin/faust2lv2; 18 + ''; 15 19 }
+2
pkgs/applications/audio/faustPhysicalModeling/default.nix
··· 12 12 13 13 buildInputs = [ faust2jaqt faust2lv2 ]; 14 14 15 + dontWrapQtApps = true; 16 + 15 17 buildPhase = '' 16 18 cd examples/physicalModeling 17 19
-40
pkgs/applications/audio/faustStk/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub, faust2jaqt, faust2lv2 }: 2 - 3 - stdenv.mkDerivation rec { 4 - pname = "faustPhhysicalModeling"; 5 - version = "2.20.2"; 6 - 7 - src = fetchFromGitHub { 8 - owner = "grame-cncm"; 9 - repo = "faust"; 10 - rev = version; 11 - sha256 = "1mm93ba26b7q69hvabzalg30dh8pl858nj4m2bb57pznnp09lq9a"; 12 - }; 13 - 14 - buildInputs = [ faust2jaqt faust2lv2 ]; 15 - 16 - buildPhase = '' 17 - cd examples/physicalModeling/faust-stk 18 - 19 - for f in *.dsp; do 20 - faust2jaqt -time -vec -midi -nvoices 8 -t 99999 $f 21 - faust2lv2 -time -vec -double -gui -nvoices 32 -t 99999 $f 22 - done 23 - ''; 24 - 25 - installPhase = '' 26 - mkdir -p $out/lib/lv2 $out/bin 27 - mv *.lv2/ $out/lib/lv2 28 - for f in $(find . -executable -type f); do 29 - cp $f $out/bin/ 30 - done 31 - ''; 32 - meta = with lib; { 33 - broken = (stdenv.isLinux && stdenv.isAarch64); 34 - description = "The physical modeling instruments included with faust, compiled as jack standalone and lv2 instruments"; 35 - homepage = "https://ccrma.stanford.edu/~rmichon/faustSTK/"; 36 - license = licenses.stk; 37 - platforms = platforms.linux; 38 - maintainers = with maintainers; [ magnetophon ]; 39 - }; 40 - }
+5 -2
pkgs/applications/audio/magnetophonDSP/CharacterCompressor/default.nix
··· 12 12 13 13 buildInputs = [ faust2jaqt faust2lv2 ]; 14 14 15 + dontWrapQtApps = true; 16 + 15 17 buildPhase = '' 16 18 faust2jaqt -vec -time -t 99999 CharacterCompressor.dsp 17 19 faust2jaqt -vec -time -t 99999 CharacterCompressorMono.dsp ··· 21 23 22 24 installPhase = '' 23 25 mkdir -p $out/bin 24 - cp CharacterCompressor $out/bin/ 25 - cp CharacterCompressorMono $out/bin/ 26 + for f in $(find . -executable -type f); do 27 + cp $f $out/bin/ 28 + done 26 29 mkdir -p $out/lib/lv2 27 30 cp -r CharacterCompressor.lv2/ $out/lib/lv2 28 31 cp -r CharacterCompressorMono.lv2/ $out/lib/lv2
+3 -2
pkgs/applications/audio/magnetophonDSP/CompBus/default.nix
··· 12 12 13 13 buildInputs = [ faust2jaqt faust2lv2 ]; 14 14 15 + dontWrapQtApps = true; 16 + 15 17 buildPhase = '' 16 18 for f in *.dsp; 17 19 do ··· 28 30 mkdir -p $out/lib/lv2 29 31 mv *.lv2/ $out/lib/lv2 30 32 mkdir -p $out/bin 31 - for f in $(find . -executable -type f); 32 - do 33 + for f in $(find . -executable -type f); do 33 34 cp $f $out/bin/ 34 35 done 35 36 '';
+7 -1
pkgs/applications/audio/magnetophonDSP/ConstantDetuneChorus/default.nix
··· 12 12 13 13 buildInputs = [ faust2jaqt faust2lv2 ]; 14 14 15 + dontWrapQtApps = true; 16 + 15 17 buildPhase = '' 16 18 faust2jaqt -time -vec -t 99999 ConstantDetuneChorus.dsp 17 19 faust2lv2 -time -vec -t 99999 -gui ConstantDetuneChorus.dsp ··· 19 21 20 22 installPhase = '' 21 23 mkdir -p $out/bin 22 - cp ConstantDetuneChorus $out/bin/ 24 + for f in $(find . -executable -type f); do 25 + cp $f $out/bin/ 26 + done 23 27 mkdir -p $out/lib/lv2 24 28 cp -r ConstantDetuneChorus.lv2/ $out/lib/lv2 25 29 ''; ··· 29 33 homepage = "https://github.com/magnetophon/constant-detune-chorus"; 30 34 license = lib.licenses.gpl3; 31 35 maintainers = [ lib.maintainers.magnetophon ]; 36 + # ERROR3 : n is NaN in an Interval 37 + broken = true; 32 38 }; 33 39 }
+5 -1
pkgs/applications/audio/magnetophonDSP/LazyLimiter/default.nix
··· 12 12 13 13 buildInputs = [ faust2jaqt faust2lv2 ]; 14 14 15 + dontWrapQtApps = true; 16 + 15 17 buildPhase = '' 16 18 faust2jaqt -vec -time -t 99999 LazyLimiter.dsp 17 19 faust2lv2 -vec -time -t 99999 -gui LazyLimiter.dsp ··· 19 21 20 22 installPhase = '' 21 23 mkdir -p $out/bin 22 - cp LazyLimiter $out/bin/ 24 + for f in $(find . -executable -type f); do 25 + cp $f $out/bin/ 26 + done 23 27 mkdir -p $out/lib/lv2 24 28 cp -r LazyLimiter.lv2/ $out/lib/lv2 25 29 '';
+5 -1
pkgs/applications/audio/magnetophonDSP/MBdistortion/default.nix
··· 19 19 20 20 buildInputs = [ faust2jaqt faust2lv2 ]; 21 21 22 + dontWrapQtApps = true; 23 + 22 24 buildPhase = '' 23 25 faust2jaqt -time -vec -t 99999 MBdistortion.dsp 24 26 faust2lv2 -time -vec -gui -t 99999 MBdistortion.dsp ··· 26 28 27 29 installPhase = '' 28 30 mkdir -p $out/bin 29 - cp MBdistortion $out/bin/ 31 + for f in $(find . -executable -type f); do 32 + cp $f $out/bin/ 33 + done 30 34 mkdir -p $out/lib/lv2 31 35 cp -r MBdistortion.lv2/ $out/lib/lv2 32 36 '';
+5 -1
pkgs/applications/audio/magnetophonDSP/RhythmDelay/default.nix
··· 12 12 13 13 buildInputs = [ faust2jaqt faust2lv2 ]; 14 14 15 + dontWrapQtApps = true; 16 + 15 17 buildPhase = '' 16 18 faust2jaqt -time -vec -t 99999 RhythmDelay.dsp 17 19 faust2lv2 -time -vec -t 99999 -gui RhythmDelay.dsp ··· 19 21 20 22 installPhase = '' 21 23 mkdir -p $out/bin 22 - cp RhythmDelay $out/bin/ 24 + for f in $(find . -executable -type f); do 25 + cp $f $out/bin/ 26 + done 23 27 mkdir -p $out/lib/lv2 24 28 cp -r RhythmDelay.lv2/ $out/lib/lv2 25 29 '';
+4 -4
pkgs/applications/audio/magnetophonDSP/VoiceOfFaust/default.nix
··· 18 18 19 19 runtimeInputs = [ pitchTracker ]; 20 20 21 + dontWrapQtApps = true; 22 + 21 23 patchPhase = '' 22 24 sed -i "s@pd -nodac@${pitchTracker}/bin/pd -nodac@g" launchers/synthWrapper 23 25 sed -i "s@../PureData/OscSendVoc.pd@$out/PureData/OscSendVoc.pd@g" launchers/pitchTracker ··· 32 34 installPhase = '' 33 35 mkdir -p $out/bin 34 36 35 - for file in ./*; do 36 - if test -x "$file" && test -f "$file"; then 37 - cp "$file" "$out/bin" 38 - fi 37 + for f in $(find . -executable -type f); do 38 + cp $f $out/bin/ 39 39 done 40 40 41 41 cp launchers/* $out/bin/
+3 -2
pkgs/applications/audio/magnetophonDSP/faustCompressors/default.nix
··· 12 12 13 13 buildInputs = [ faust2jaqt faust2lv2 ]; 14 14 15 + dontWrapQtApps = true; 16 + 15 17 buildPhase = '' 16 18 echo "hack out autoComp.dsp due to https://github.com/grame-cncm/faust/407/issues " 17 19 rm autoComp.dsp ··· 33 35 mv *.lv2/ $out/lib/lv2 34 36 mkdir -p $out/bin 35 37 rm newlib.sh 36 - for f in $(find . -executable -type f); 37 - do 38 + for f in $(find . -executable -type f); do 38 39 cp $f $out/bin/ 39 40 done 40 41 '';
+6 -2
pkgs/applications/audio/magnetophonDSP/pluginUtils/default.nix
··· 12 12 13 13 buildInputs = [ faust2jaqt faust2lv2 ]; 14 14 15 + dontWrapQtApps = true; 16 + 15 17 buildPhase = '' 16 18 for f in *.dsp 17 19 do ··· 28 30 mkdir -p $out/lib/lv2 29 31 mv *.lv2/ $out/lib/lv2 30 32 mkdir -p $out/bin 31 - cp * $out/bin/ 32 - ''; 33 + for f in $(find . -executable -type f); do 34 + cp $f $out/bin/ 35 + done 36 + ''; 33 37 34 38 meta = { 35 39 description = "Some simple utility lv2 plugins";
+5 -2
pkgs/applications/audio/magnetophonDSP/shelfMultiBand/default.nix
··· 12 12 13 13 buildInputs = [ faust2jaqt faust2lv2 ]; 14 14 15 + dontWrapQtApps = true; 16 + 15 17 buildPhase = '' 16 18 faust2jaqt -vec -double -time -t 99999 shelfMultiBand.dsp 17 19 faust2jaqt -vec -double -time -t 99999 shelfMultiBandMono.dsp ··· 21 23 22 24 installPhase = '' 23 25 mkdir -p $out/bin 24 - cp shelfMultiBand $out/bin/ 25 - cp shelfMultiBandMono $out/bin/ 26 + for f in $(find . -executable -type f); do 27 + cp $f $out/bin/ 28 + done 26 29 mkdir -p $out/lib/lv2 27 30 cp -r shelfMultiBand.lv2/ $out/lib/lv2 28 31 cp -r shelfMultiBandMono.lv2/ $out/lib/lv2
+7 -3
pkgs/applications/audio/mooSpace/default.nix
··· 14 14 15 15 patchPhase = "mv ${pname}_faust.dsp ${pname}.dsp"; 16 16 17 + dontWrapQtApps = true; 18 + 17 19 buildPhase = '' 18 20 faust2jaqt -time -vec -t 0 ${pname}.dsp 19 21 faust2lv2 -time -vec -t 0 -gui ${pname}.dsp ··· 21 23 22 24 installPhase = '' 23 25 mkdir -p $out/bin 24 - cp ${pname} $out/bin/ 25 - mkdir -p $out/lib/lv2 26 - cp -r ${pname}.lv2 $out/lib/lv2 26 + for f in $(find . -executable -type f); do 27 + cp $f $out/bin/ 28 + done 29 + mkdir -p $out/lib/lv2 30 + cp -r ${pname}.lv2 $out/lib/lv2 27 31 ''; 28 32 29 33 meta = {
+5 -1
pkgs/applications/audio/tambura/default.nix
··· 12 12 13 13 buildInputs = [ faust2jaqt faust2lv2 ]; 14 14 15 + dontWrapQtApps = true; 16 + 15 17 buildPhase = '' 16 18 faust2jaqt -vec -time -t 99999 ${pname}.dsp 17 19 faust2lv2 -vec -time -gui -t 99999 ${pname}.dsp ··· 19 21 20 22 installPhase = '' 21 23 mkdir -p $out/bin 22 - cp ${pname} $out/bin/ 24 + for f in $(find . -executable -type f); do 25 + cp $f $out/bin/ 26 + done 23 27 mkdir -p $out/lib/lv2 24 28 cp -r ${pname}.lv2/ $out/lib/lv2 25 29 '';
+1
pkgs/top-level/aliases.nix
··· 484 484 ### F ### 485 485 486 486 facette = throw "facette has been removed"; # Added 2020-01-06 487 + faustStk = faustPhysicalModeling; # Added 2023-05-16 487 488 fast-neural-doodle = throw "fast-neural-doodle has been removed, as the upstream project has been abandoned"; # Added 2020-03-28 488 489 fastnlo = fastnlo_toolkit; # Added 2021-04-24 489 490 fbreader = throw "fbreader has been removed, as the upstream project has been archived"; # Added 2022-05-26
+3 -5
pkgs/top-level/all-packages.nix
··· 39125 39125 39126 39126 faust2 = callPackage ../applications/audio/faust/faust2.nix { }; 39127 39127 39128 - faust2alqt = callPackage ../applications/audio/faust/faust2alqt.nix { }; 39128 + faust2alqt = libsForQt5.callPackage ../applications/audio/faust/faust2alqt.nix { }; 39129 39129 39130 39130 faust2alsa = callPackage ../applications/audio/faust/faust2alsa.nix { }; 39131 39131 ··· 39139 39139 39140 39140 faust2jackrust = callPackage ../applications/audio/faust/faust2jackrust.nix { }; 39141 39141 39142 - faust2jaqt = callPackage ../applications/audio/faust/faust2jaqt.nix { }; 39142 + faust2jaqt = libsForQt5.callPackage ../applications/audio/faust/faust2jaqt.nix { }; 39143 39143 39144 39144 faust2ladspa = callPackage ../applications/audio/faust/faust2ladspa.nix { }; 39145 39145 39146 - faust2lv2 = callPackage ../applications/audio/faust/faust2lv2.nix { }; 39146 + faust2lv2 = libsForQt5.callPackage ../applications/audio/faust/faust2lv2.nix { }; 39147 39147 39148 39148 faustlive = callPackage ../applications/audio/faust/faustlive.nix { }; 39149 39149 39150 39150 faustPhysicalModeling = callPackage ../applications/audio/faustPhysicalModeling { }; 39151 - 39152 - faustStk = callPackage ../applications/audio/faustStk { }; 39153 39151 39154 39152 flockit = callPackage ../tools/backup/flockit { }; 39155 39153