fix: pass extraArgs defaults to impure translators

This commit is contained in:
DavHau 2022-07-03 12:14:33 +02:00
parent 1a30e4062a
commit 1477c6d9d8

View File

@ -185,12 +185,15 @@ in
argsJsonFile = argsJsonFile =
pkgs.writeText "translator-args.json" pkgs.writeText "translator-args.json"
(l.toJSON (l.toJSON (
(args args
// { // {
project = l.removeAttrs args.project ["dreamLock"]; project = l.removeAttrs args.project ["dreamLock"];
outputFile = project.dreamLockPath; outputFile = project.dreamLockPath;
})); }
// (dlib.translators.getextraArgsDefaults translator.extraArgs or {})
// args.project.subsystemInfo
));
in in
writePureShellScriptBin "resolve" writePureShellScriptBin "resolve"
[ [