mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
* Allow variables to be set to a specific value.
svn path=/nixpkgs/trunk/; revision=2359
This commit is contained in:
parent
031db34059
commit
6b25f34d77
1 changed files with 7 additions and 0 deletions
|
@ -10,6 +10,13 @@ makeWrapper() {
|
|||
for ((n = 2; n < ${#params[*]}; n += 1)); do
|
||||
p=${params[$n]}
|
||||
|
||||
if test "$p" = "--set"; then
|
||||
varName=${params[$((n + 1))]}
|
||||
value=${params[$((n + 2))]}
|
||||
n=$((n + 2))
|
||||
echo "export $varName=$value" >> $wrapper
|
||||
fi
|
||||
|
||||
if test "$p" = "--suffix"; then
|
||||
varName=${params[$((n + 1))]}
|
||||
separator=${params[$((n + 2))]}
|
||||
|
|
Loading…
Reference in a new issue