diff --git a/dev/tests/eval-tests.nix b/dev/tests/eval-tests.nix index e0dedae..437ee1a 100644 --- a/dev/tests/eval-tests.nix +++ b/dev/tests/eval-tests.nix @@ -35,6 +35,18 @@ rec { }; }; + packagesNonStrictInDevShells = mkFlake + { inputs.self = packagesNonStrictInDevShells; /* approximation */ } + { + systems = [ "a" "b" ]; + perSystem = { system, self', ... }: { + packages.hello = pkg system "hello"; + packages.default = self'.packages.hello; + devShells = throw "can't be strict in perSystem.devShells!"; + }; + flake.devShells = throw "can't be strict in devShells!"; + }; + easyOverlay = mkFlake { inputs.self = { }; } { @@ -148,6 +160,8 @@ rec { assert flakeModulesDisable.test123 == "option123"; + assert packagesNonStrictInDevShells.packages.a.default == pkg "a" "hello"; + ok; result = runTests "ok";