Fix tests/ to ensure they use the lib attribute introduced in 83ad1c2206710f356d362170402e461422d2ff3b

This commit is contained in:
boyreau 2026-08-20 12:19:49 +02:00
commit a057ce75e9
4 changed files with 12 additions and 12 deletions

View file

@ -158,7 +158,7 @@ runNixDrvWithinVm vmConfig nixDrvExpr = do
};
script = let
jail-nix = import <jail-nix> {};
jail = jail-nix.extend { inherit pkgs; suppressExperimentalWarnings = true; };
jail = jail-nix.lib.extend { inherit pkgs; suppressExperimentalWarnings = true; };
testToRun = #{nixDrvExpr};
in ''
(
@ -204,7 +204,7 @@ evalNixExpr nixExpr = do
lib = pkgs.lib;
sh = script: (pkgs.writeShellApplication { name = "test-script"; text = script; });
jail-nix = import <jail-nix> {};
jail = jail-nix.extend { inherit pkgs; suppressExperimentalWarnings = true; };
jail = jail-nix.lib.extend { inherit pkgs; suppressExperimentalWarnings = true; };
in #{nixExpr}
|]
liftIO $