nixpkgs/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 config.contentAddressedByDefault: init option 2022-04-27 23:21:32 +03:00
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 treewide: use lib.optionals 2023-02-14 19:11:59 +01:00
nix stdenv/common-path.nix: move to stdenv/generic/ 2022-07-29 18:24:00 -04:00
tests stdenv.tests: Add succeedOnFailure 2022-11-14 19:03:35 +01:00
adapters.nix stdenvAdapters: fix preservation of env.NIX_CFLAGS_COMPILE 2023-04-12 21:27:34 +03:00
booter.nix
default.nix stdenv: Simplify dispatch 2022-07-29 18:34:02 -04:00