From a058e1a6cd104123307a8710a5161d4774bd8ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 13 May 2025 13:30:58 +0200 Subject: [PATCH] lib.filter: allow to name inputs --- lib/filter-clan-core/flake-module.nix | 3 ++- lib/introspection/flake-module.nix | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/filter-clan-core/flake-module.nix b/lib/filter-clan-core/flake-module.nix index b6bcfa345..c2a6ccc1d 100644 --- a/lib/filter-clan-core/flake-module.nix +++ b/lib/filter-clan-core/flake-module.nix @@ -5,11 +5,12 @@ in { flake.filter = { + name ? "source", include ? [ ], exclude ? [ ], }: nixFilter.filter { - inherit exclude; + inherit name exclude; include = include ++ [ "flake.nix" ]; diff --git a/lib/introspection/flake-module.nix b/lib/introspection/flake-module.nix index bb72c4920..ee18b5999 100644 --- a/lib/introspection/flake-module.nix +++ b/lib/introspection/flake-module.nix @@ -20,13 +20,13 @@ in checks = { lib-values-eval = pkgs.runCommand "tests" { nativeBuildInputs = [ pkgs.nix-unit ]; } '' export HOME="$(realpath .)" - nix-unit --eval-store "$HOME" \ --extra-experimental-features flakes \ --show-trace \ ${inputOverrides} \ --flake ${ self.filter { + name = "lib"; include = [ "flakeModules" "lib"