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

@ -12,8 +12,8 @@ spec = parallel $ inTestM $ do
it "can be imported using callPackage" $ do
[i|
let
jail-nix-without-flake = pkgs.callPackage <jail-nix> {};
jail-without-flake = jail-nix-without-flake.init pkgs;
jail-nix-without-flake = import <jail-nix> {};
jail-without-flake = jail-nix-without-flake.lib.init pkgs;
in
jail-without-flake "hello" pkgs.hello []
|]
@ -85,7 +85,7 @@ spec = parallel $ inTestM $ do
liftIO $ writeFile secretPath "hunter2"
[i|
let
jail' = jail-nix.extend {
jail' = jail-nix.lib.extend {
inherit pkgs;
basePermissions = c: [
(c.readonly #{toNixString secretPath})
@ -101,7 +101,7 @@ spec = parallel $ inTestM $ do
it "allows overriding the bubblewrap package" $ do
[i|
let
jail' = jail-nix.extend {
jail' = jail-nix.lib.extend {
inherit pkgs;
bubblewrapPackage = pkgs.writeShellApplication {
name = "my-bubblewrap";