Merge pull request 'lib.filter: allow to name inputs' (#3616) from ci-fixes into main

Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3616
This commit is contained in:
Mic92
2025-05-13 11:35:54 +00:00
2 changed files with 3 additions and 2 deletions

View File

@@ -5,11 +5,12 @@ in
{
flake.filter =
{
name ? "source",
include ? [ ],
exclude ? [ ],
}:
nixFilter.filter {
inherit exclude;
inherit name exclude;
include = include ++ [
"flake.nix"
];

View File

@@ -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"