nixpkgs/doc/using
Artturin 0fdae31531 stdenv: let overrideAttrs accept attrset OR function
Makes overrideAttrs usable in the same way that `override` can be used.
It allows the first argument of `overrideAttrs` to be either a function
or an attrset, instead of only a function:

hello.overrideAttrs (old: { postBuild = "echo hello"; })
hello.overrideAttrs { postBuild = "echo hello"; }

Previously only the first example was possible.

Co-authored-by: adisbladis <adisbladis@gmail.com>
Co-authored-by: matthewcroughan <matt@croughan.sh>
2023-06-30 23:28:00 +03:00
..
configuration.chapter.md doc,nixos/doc: unescape double quotes 2022-12-27 17:13:49 +01:00
overlays.chapter.md nixpkgs/doc: update overlay/lapack section 2022-02-11 17:51:39 +01:00
overrides.chapter.md stdenv: let overrideAttrs accept attrset OR function 2023-06-30 23:28:00 +03:00