Commit d04d2858 authored by zimbatm's avatar zimbatm
Browse files

writeShellApplication: add passthru argument

parent f4789133
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -222,6 +222,12 @@ rec {
         Type: AttrSet
       */
      meta ? { },
      /*
         `stdenv.mkDerivation`'s `passthru` argument.

         Type: AttrSet
       */
      passthru ? { },
      /*
         The `checkPhase` to run. Defaults to `shellcheck` on supported
         platforms and `bash -n`.
@@ -265,7 +271,7 @@ rec {
      derivationArgs ? { },
    }:
    writeTextFile {
      inherit name meta derivationArgs;
      inherit name meta passthru derivationArgs;
      executable = true;
      destination = "/bin/${name}";
      allowSubstitutes = true;