summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2023-09-23 18:20:10 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2023-10-26 20:30:00 +0200
commitd966c62cf604e80a50317d931a67092bef77fcef (patch)
treeaec70505cb6929865e817df6a700ca881e191db0
parentquartus-prime-lite: run mkdir as needed (diff)
downloadnixpkgs-d966c62cf604e80a50317d931a67092bef77fcef.tar.gz
quartus-prime-lite: lower case local shell variables
Upper case shell variables are generally for internal variables (SHELL, BASH_VERSION) or environment variables (PAGER, EDITOR). Other variables should be lower case. (cherry picked from commit 9951cb98f49c96d71cb2e1f8b38f332c87f4cfce)
-rw-r--r--pkgs/applications/editors/quartus-prime/default.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/applications/editors/quartus-prime/default.nix b/pkgs/applications/editors/quartus-prime/default.nix
index 1465f8fc7f72..ca8658395210 100644
--- a/pkgs/applications/editors/quartus-prime/default.nix
+++ b/pkgs/applications/editors/quartus-prime/default.nix
@@ -67,18 +67,18 @@ in buildFHSEnvChroot rec {
ln -s ${desktopItem}/share/applications/* $out/share/applications
ln -s ${unwrapped}/licenses/images/dc_quartus_panel_logo.png $out/share/icons/128x128/quartus.png
- WRAPPER=$out/bin/${name}
- EXECUTABLES="${lib.concatStringsSep " " (quartusExecutables ++ qsysExecutables ++ modelsimExecutables)}"
- for executable in $EXECUTABLES; do
+ wrapper=$out/bin/${name}
+ executables="${lib.concatStringsSep " " (quartusExecutables ++ qsysExecutables ++ modelsimExecutables)}"
+ for executable in $executables; do
mkdir -p "$(dirname "$out/$executable")"
echo "#!${stdenv.shell}" >> $out/$executable
- echo "$WRAPPER ${unwrapped}/$executable \"\$@\"" >> $out/$executable
+ echo "$wrapper ${unwrapped}/$executable \"\$@\"" >> $out/$executable
done
cd $out
- chmod +x $EXECUTABLES
+ chmod +x $executables
# link into $out/bin so executables become available on $PATH
- ln --symbolic --relative --target-directory ./bin $EXECUTABLES
+ ln --symbolic --relative --target-directory ./bin $executables
'';
# LD_PRELOAD fixes issues in the licensing system that cause memory corruption and crashes when