nixpkgs/pkgs/test
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
..
cc-wrapper Merge pull request #229754 from rrbutani/fix/cc-wrapper-extra-positional-args 2023-05-08 06:55:52 -04:00
coq tests.coq.overrideCoqDerivation: use runCommand instead of runCommandNoCC 2022-09-03 21:02:17 +09:00
cross treewide: {build,host,target}Platform -> stdenv.{build,host,target}Platform 2023-01-09 21:13:22 +02:00
cuda cudaPackages: bump default cudaPackages_11_7 -> cudaPackages_11_8 (#238622) 2023-06-20 14:12:54 -04:00
cue cue: test in tests.cue-validation 2022-12-08 22:19:23 +01:00
dhall buildDhallUrl: use new SRI hash format 2022-06-04 08:19:29 -03:00
dotnet tests.dotnet: init with test for projectReferences 2023-05-26 16:18:07 +02:00
haskell tests.haskell.incremental: change package used from turtle to temporary 2023-05-30 09:06:42 +09:00
hooks tests: move stdenv hook tests to stdenv.hooks 2022-12-12 21:39:56 +02:00
install-shell-files
ld-library-path
macos-sierra-shared
make-binary-wrapper tests.makeBinaryWrapper: avoid same-triple cross 2023-04-19 18:34:47 +00:00
make-hardcode-gsettings-patch makeHardcodeGsettingsPatch: Support other constructors 2022-12-19 17:38:57 +01:00
make-wrapper makeWrapper,makeBinaryWrapper: implement --append-flags 2022-05-30 23:07:58 +02:00
nixos-functions Merge remote-tracking branch 'upstream/master' into testers 2022-05-09 14:27:13 +02:00
php
simple treewide: source .attrs in builders 2022-12-08 21:09:02 +02:00
stdenv tests.stdenv.hooks.reproducible-builds: fix mistake 2023-06-17 23:45:11 +03:00
stdenv-inputs
texlive texlive.combine: move repstopdf test to tests.texlive (#231742) 2023-05-14 11:05:22 -04:00
vim vim-full: rename from vim_configurable 2022-12-09 09:55:55 +01:00
config.nix pkgs/tests/config.nix: Make test future proof 2022-05-29 11:50:48 +02:00
default.nix tests.dotnet: init with test for projectReferences 2023-05-26 16:18:07 +02:00
kernel.nix tests.kernel-config: remove test that wasn't being run 2023-01-17 20:01:58 +02:00
overriding.nix stdenv: let overrideAttrs accept attrset OR function 2023-06-30 23:28:00 +03:00