diff options
| author | Shea Levy <shea@shealevy.com> | 2024-01-30 17:29:47 -0500 |
|---|---|---|
| committer | Shea Levy <shea@shealevy.com> | 2024-02-02 16:27:30 -0500 |
| commit | ca1262a4832b290d9f35c4b9c5f67f93144c7f2a (patch) | |
| tree | 4f6bea9f271666da958a0531adb7ede78df05d0b /lib/default.nix | |
| parent | bcachefs-tools: fix fuseSupport option (diff) | |
| download | nixpkgs-ca1262a4832b290d9f35c4b9c5f67f93144c7f2a.tar.gz | |
lib: Add optionalDrvAttr to conditionally set drv attributes.
This allows for adding new, conditionally set, derivation attributes
to an existing derivation without changing any output paths in the
case where the condition is not met.
Diffstat (limited to 'lib/default.nix')
| -rw-r--r-- | lib/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/default.nix b/lib/default.nix index f6c94ae91634..a17307be6e07 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -116,7 +116,7 @@ let inherit (self.customisation) overrideDerivation makeOverridable callPackageWith callPackagesWith extendDerivation hydraJob makeScope makeScopeWithSplicing makeScopeWithSplicing'; - inherit (self.derivations) lazyDerivation; + inherit (self.derivations) lazyDerivation optionalDrvAttr; inherit (self.meta) addMetaAttrs dontDistribute setName updateName appendToName mapDerivationAttrset setPrio lowPrio lowPrioSet hiPrio hiPrioSet getLicenseFromSpdxId getExe getExe'; |
