Skip to content

Commit c18e038

Browse files
committed
writeTextFile: add support for passthru
1 parent 4cec514 commit c18e038

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkgs/build-support/trivial-builders/default.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ rec {
8282
, destination ? ""
8383
, checkPhase ? ""
8484
, meta ? { }
85+
, passthru ? { }
8586
, allowSubstitutes ? false
8687
, preferLocalBuild ? true
8788
, derivationArgs ? { }
@@ -105,7 +106,8 @@ rec {
105106
{
106107
mainProgram = lib.head matches;
107108
} // meta // derivationArgs.meta or {};
108-
} // removeAttrs derivationArgs [ "passAsFile" "meta" ])
109+
passthru = passthru // derivationArgs.passthru or {};
110+
} // removeAttrs derivationArgs [ "passAsFile" "meta" "passthru" ])
109111
''
110112
target=$out${lib.escapeShellArg destination}
111113
mkdir -p "$(dirname "$target")"

0 commit comments

Comments
 (0)