nixpkgs-suyu/pkgs/stdenv
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
..
cross pkgs: fix typos 2023-05-19 22:31:04 -04:00
custom
cygwin
darwin Merge pull request #234861 from reckenrode/corefoundation-rpath 2023-06-11 17:13:54 +02:00
freebsd
generic stdenv: let overrideAttrs accept attrset OR function 2023-06-30 23:28:00 +03:00
linux Merge pull request #228714 from helsinki-systems/upd/gnugrep 2023-05-24 12:47:48 +03:00
native
nix
tests
adapters.nix stdenvAdapters: fix preservation of env.NIX_CFLAGS_COMPILE 2023-04-12 21:27:34 +03:00
booter.nix
default.nix