+20
-1
lib/customisation.nix
+20
-1
lib/customisation.nix
···overrideWith = newArgs: origArgs // (if isFunction newArgs then newArgs origArgs else newArgs);+In some cases, you may find a list of possible attributes to pass in this function's `__functionArgs` attribute, but it will not be complete for an original function like `args@{foo, ...}: ...`, which accepts arbitrary attributes.···+Override the attributes that were passed to `mkDerivation` in order to generate this derivation.+This function is provided by `lib.makeOverridable`, and indirectly by `callPackage` among others, in order to make the combination of `override` and `overrideAttrs` work.+# NOTE: part of the above documentation had to be duplicated in `mkDerivation`'s `overrideAttrs`.
+4
pkgs/stdenv/generic/make-derivation.nix
+4
pkgs/stdenv/generic/make-derivation.nix
···+Override the attributes that were passed to `mkDerivation` in order to generate this derivation.+# NOTE: the above documentation had to be duplicated in `lib/customisation.nix`: `makeOverridable`.