From 51afc33a17280bb5f0758981ad244ecb43417010 Mon Sep 17 00:00:00 2001 From: huantian Date: Wed, 21 Aug 2024 12:27:41 -0700 Subject: [PATCH] tauon: fix build error If the interpreter path to bash after patchShebang contians the string 'gcc', then we will end up mangaling the shebang interpreter path with the substituteInPlace on 'gcc' that follows the patchShebang. We can fix this by switching the order of the two, but since this script is only used once during compilation, it's simplier just to call bash directly to run the script. --- pkgs/applications/audio/tauon/default.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/applications/audio/tauon/default.nix b/pkgs/applications/audio/tauon/default.nix index 4f407cda357d..08cca1791ce2 100644 --- a/pkgs/applications/audio/tauon/default.nix +++ b/pkgs/applications/audio/tauon/default.nix @@ -58,15 +58,13 @@ stdenv.mkDerivation (finalAttrs: { substituteInPlace t_modules/t_phazor.py \ --replace 'lib/libphazor.so' '../../lib/libphazor.so' - patchShebangs compile-phazor.sh - substituteInPlace compile-phazor.sh --replace 'gcc' '${stdenv.cc.targetPrefix}cc' substituteInPlace extra/tauonmb.desktop --replace 'Exec=/opt/tauon-music-box/tauonmb.sh' 'Exec=${placeholder "out"}/bin/tauon' ''; postBuild = '' - ./compile-phazor.sh + bash ./compile-phazor.sh ''; nativeBuildInputs = [