mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2024-12-14 11:47:31 +00:00
Test mkFlake specialArgs
This commit is contained in:
parent
4e35834232
commit
6f8516c874
1 changed files with 12 additions and 0 deletions
|
@ -135,6 +135,16 @@ rec {
|
||||||
config = { };
|
config = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
specialArgFlake = mkFlake
|
||||||
|
{
|
||||||
|
inputs.self = { };
|
||||||
|
specialArgs.soSpecial = true;
|
||||||
|
}
|
||||||
|
({ soSpecial, ... }: {
|
||||||
|
imports = assert soSpecial; [ ];
|
||||||
|
flake.foo = true;
|
||||||
|
});
|
||||||
|
|
||||||
runTests = ok:
|
runTests = ok:
|
||||||
|
|
||||||
assert empty == {
|
assert empty == {
|
||||||
|
@ -201,6 +211,8 @@ rec {
|
||||||
|
|
||||||
assert emptyExposeArgs.moduleLocation == "the self outpath/flake.nix";
|
assert emptyExposeArgs.moduleLocation == "the self outpath/flake.nix";
|
||||||
|
|
||||||
|
assert specialArgFlake.foo;
|
||||||
|
|
||||||
ok;
|
ok;
|
||||||
|
|
||||||
result = runTests "ok";
|
result = runTests "ok";
|
||||||
|
|
Loading…
Reference in a new issue