runDhallCommand: append extra nativeBuildInputs

This commit is contained in:
Emery Hemingway 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 {
runDhallCommand = name: env: script:
nixpkgs.runCommand name
({ nativeBuildInputs = [ buildPackages.dhall ]; } // env) ''
nixpkgs.runCommand name (env // {
nativeBuildInputs = [ buildPackages.dhall ] ++ env.buildPackages or [ ];
}) ''
${dhallCachePrelude}
${script}
'';