Skip to content

Commit

Permalink
mkDerivation: Do not expose passthru input attribute when __cleanAttrs
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Mar 13, 2023
1 parent 87c0cd0 commit 2017020
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkgs/stdenv/generic/make-derivation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -579,12 +579,13 @@ lib.extendDerivation
disallowedRequisites = [ ];
});

inherit meta passthru overrideAttrs;
} //
inherit meta overrideAttrs;
}
// lib.optionalAttrs (! attrs.__cleanAttrs or false) { inherit passthru; }
# Pass through extra attributes that are not inputs, but
# should be made available to Nix expressions using the
# derivation (e.g., in assertions).
passthru)
// passthru)
(
let
drvAttrs = derivationArg // lib.optionalAttrs envIsExportable checkedEnv;
Expand Down

0 comments on commit 2017020

Please sign in to comment.