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:
@@ -5,11 +5,12 @@ in
|
||||
{
|
||||
flake.filter =
|
||||
{
|
||||
name ? "source",
|
||||
include ? [ ],
|
||||
exclude ? [ ],
|
||||
}:
|
||||
nixFilter.filter {
|
||||
inherit exclude;
|
||||
inherit name exclude;
|
||||
include = include ++ [
|
||||
"flake.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"
|
||||
|
||||
Reference in New Issue
Block a user