exec: add support for nixPrefix
This commit is contained in:
parent
8d5853bba9
commit
1f841649f8
@ -9,6 +9,7 @@
|
||||
, pre ? ""
|
||||
, argv ? []
|
||||
, post ? ""
|
||||
, nixPrefix ? ""
|
||||
}:
|
||||
|
||||
with builtins;
|
||||
@ -28,7 +29,7 @@ stdenv.mkDerivation {
|
||||
${env}
|
||||
|
||||
''+pre+''
|
||||
${execMethod}${stageProgram nextStage} ${argvString}
|
||||
${execMethod}${nixPrefix}${stageProgram nextStage} ${argvString}
|
||||
''+post+''
|
||||
EOF
|
||||
chmod +x $out
|
||||
|
Loading…
Reference in New Issue
Block a user