nixpkgs/pkgs/stdenv/generic
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
..
builder.sh
check-meta.nix stdenv: factor out meta attr augmentation for reusability 2023-05-01 20:18:11 +03:00
common-path.nix stdenv/common-path.nix: move to stdenv/generic/ 2022-07-29 18:24:00 -04:00
default-builder.sh stdenv: support opt-in __structuredAttrs 2022-12-08 06:13:19 +02:00
default.nix stdenv: sort defaultNativeBuildInputs alphabetically 2022-12-13 01:12:20 +02:00
make-derivation.nix stdenv: let overrideAttrs accept attrset OR function 2023-06-30 23:28:00 +03:00
setup.sh Merge pull request #234883 from sternenseemann/nix-structured-attrs 2023-05-31 19:41:58 +02:00