exec: add support for nixPrefix

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

View File

@ -9,6 +9,7 @@
, pre ? "" , pre ? ""
, argv ? [] , argv ? []
, post ? "" , post ? ""
, nixPrefix ? ""
}: }:
with builtins; with builtins;
@ -28,7 +29,7 @@ stdenv.mkDerivation {
${env} ${env}
''+pre+'' ''+pre+''
${execMethod}${stageProgram nextStage} ${argvString} ${execMethod}${nixPrefix}${stageProgram nextStage} ${argvString}
''+post+'' ''+post+''
EOF EOF
chmod +x $out chmod +x $out