exec: add support for nixPrefix

This commit is contained in:
Rodrigo Arias Mallo 2020-12-02 11:57:40 +01:00
parent 8d5853bba9
commit 1f841649f8

View File

@ -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