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

Merge pull request #235 from hercules-ci/test-specialArgs

Test mkFlake specialArgs
This commit is contained in:
Robert Hensing 2024-07-03 10:15:18 +02:00 committed by GitHub
commit 9227223f6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -135,6 +135,16 @@ rec {
config = { };
};
specialArgFlake = mkFlake
{
inputs.self = { };
specialArgs.soSpecial = true;
}
({ soSpecial, ... }: {
imports = assert soSpecial; [ ];
flake.foo = true;
});
runTests = ok:
assert empty == {
@ -201,6 +211,8 @@ rec {
assert emptyExposeArgs.moduleLocation == "the self outpath/flake.nix";
assert specialArgFlake.foo;
ok;
result = runTests "ok";