2
0
Fork 0

runDhallCommand: append extra nativeBuildInputs

This commit is contained in:
Ehmry - 2020-06-28 12:38:48 +05:30
parent 44184862cc
commit d3a3b8dc7c
1 changed files with 3 additions and 2 deletions

View File

@ -18,8 +18,9 @@ let
in rec { in rec {
runDhallCommand = name: env: script: runDhallCommand = name: env: script:
nixpkgs.runCommand name nixpkgs.runCommand name (env // {
({ nativeBuildInputs = [ buildPackages.dhall ]; } // env) '' nativeBuildInputs = [ buildPackages.dhall ] ++ env.buildPackages or [ ];
}) ''
${dhallCachePrelude} ${dhallCachePrelude}
${script} ${script}
''; '';