Skip to content

Commit d04d285

Browse files
committed
writeShellApplication: add passthru argument
1 parent f478913 commit d04d285

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,12 @@ rec {
222222
Type: AttrSet
223223
*/
224224
meta ? { },
225+
/*
226+
`stdenv.mkDerivation`'s `passthru` argument.
227+
228+
Type: AttrSet
229+
*/
230+
passthru ? { },
225231
/*
226232
The `checkPhase` to run. Defaults to `shellcheck` on supported
227233
platforms and `bash -n`.
@@ -265,7 +271,7 @@ rec {
265271
derivationArgs ? { },
266272
}:
267273
writeTextFile {
268-
inherit name meta derivationArgs;
274+
inherit name meta passthru derivationArgs;
269275
executable = true;
270276
destination = "/bin/${name}";
271277
allowSubstitutes = true;

0 commit comments

Comments
 (0)