From 6f8516c8741c68195f369a4a8538fbeb2904b7db Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Wed, 3 Jul 2024 10:12:44 +0200 Subject: [PATCH] Test mkFlake specialArgs --- dev/tests/eval-tests.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dev/tests/eval-tests.nix b/dev/tests/eval-tests.nix index 1a2b974..cd57fba 100644 --- a/dev/tests/eval-tests.nix +++ b/dev/tests/eval-tests.nix @@ -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";