1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2024-12-14 11:47:31 +00:00

Test that packages is not strict in devShell

Discovered and solved by figsoda, see
https://github.com/hercules-ci/flake-parts/issues/160
This commit is contained in:
Robert Hensing 2023-05-30 15:31:19 +02:00
parent 942a008e28
commit 6ae737878e

View file

@ -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";