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.
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user