summary refs log tree commit diff
path: root/pkgs/test/stdenv/default.nix
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2022-12-11 13:31:50 +0200
committerArtturin <Artturin@artturin.com>2022-12-12 21:39:56 +0200
commit9cb5662187377146daf2b2abd54f4bce9ab59343 (patch)
tree8e05d8406fe241e54649aed7d92be05beb065ccc /pkgs/test/stdenv/default.nix
parent84a7cadfd2d419b00148b5b826568c5ba59b93d5 (diff)
downloadnixpkgs-9cb5662187377146daf2b2abd54f4bce9ab59343.tar
nixpkgs-9cb5662187377146daf2b2abd54f4bce9ab59343.tar.gz
nixpkgs-9cb5662187377146daf2b2abd54f4bce9ab59343.tar.bz2
nixpkgs-9cb5662187377146daf2b2abd54f4bce9ab59343.tar.lz
nixpkgs-9cb5662187377146daf2b2abd54f4bce9ab59343.tar.xz
nixpkgs-9cb5662187377146daf2b2abd54f4bce9ab59343.tar.zst
nixpkgs-9cb5662187377146daf2b2abd54f4bce9ab59343.zip
tests: move stdenv hook tests to stdenv.hooks
Diffstat (limited to 'pkgs/test/stdenv/default.nix')
-rw-r--r--pkgs/test/stdenv/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/test/stdenv/default.nix b/pkgs/test/stdenv/default.nix
index 0a29f91ce04..c9653b324eb 100644
--- a/pkgs/test/stdenv/default.nix
+++ b/pkgs/test/stdenv/default.nix
@@ -95,6 +95,9 @@ let
 in
 
 {
+  # tests for hooks in `stdenv.defaultNativeBuildInputs`
+  hooks = lib.recurseIntoAttrs (import ./hooks.nix { stdenv = bootStdenv; });
+
   test-env-attrset = testEnvAttrset { name = "test-env-attrset"; stdenv' = bootStdenv; };
 
   test-prepend-append-to-var = testPrependAndAppendToVar {
@@ -114,6 +117,9 @@ in
   };
 
   structuredAttrsByDefault = lib.recurseIntoAttrs {
+
+    hooks = lib.recurseIntoAttrs (import ./hooks.nix { stdenv = bootStdenvStructuredAttrsByDefault; });
+
     test-cc-wrapper-substitutions = ccWrapperSubstitutionsTest {
       name = "test-cc-wrapper-substitutions-structuredAttrsByDefault";
       stdenv' = bootStdenvStructuredAttrsByDefault;