Add experimental combinator handling

I have a few combinator ideas that I'd like to try adding but I still
haven't fully fleshed them out yet. In order to reduce breaking people's
setup, this introduces a new `experimental` flag on combinators that
separates them on the docs website to let users know that their design
may not be fully finalized yet.
This commit is contained in:
Alex David 2026-04-14 22:23:19 -07:00
commit 731ba22f60
5 changed files with 45 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; };
jail = jail-nix.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; };
jail = jail-nix.extend { inherit pkgs; suppressExperimentalWarnings = true; };
in #{nixExpr}
|]
liftIO $