From 5766ecf987a46a651e7176a861bc2d24a9d26873 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Thu, 12 Sep 2024 16:56:41 +0200 Subject: [PATCH] Test unset extraInputsFlake --- dev/tests/eval-tests.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dev/tests/eval-tests.nix b/dev/tests/eval-tests.nix index 5a47d8e..5990332 100644 --- a/dev/tests/eval-tests.nix +++ b/dev/tests/eval-tests.nix @@ -158,6 +158,17 @@ rec { flake.foo = true; }); + partitionWithoutExtraInputsFlake = mkFlake + { + inputs.self = { }; + } + ({ config, ... }: { + imports = [ flake-parts.flakeModules.partitions ]; + systems = [ "x86_64-linux" ]; + partitions.dev.module = { inputs, ... }: builtins.seq inputs { }; + partitionedAttrs.devShells = "dev"; + }); + runTests = ok: assert empty == { @@ -242,6 +253,8 @@ rec { assert specialArgFlake.foo; + assert builtins.isAttrs partitionWithoutExtraInputsFlake.devShells.x86_64-linux; + ok; result = runTests "ok";