Some test were referring to the whole source code via ${self} which amde them rebuild on every single commit.
This is not mitigated by introduceing `self.filter { include = [...]; }` allowin to a content addressed subset of the source code in tests.
26 lines
381 B
Nix
26 lines
381 B
Nix
{
|
|
lib,
|
|
inputs,
|
|
self,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib)
|
|
filter
|
|
pathExists
|
|
;
|
|
in
|
|
{
|
|
imports = filter pathExists [
|
|
./jsonschema/flake-module.nix
|
|
./inventory/flake-module.nix
|
|
./build-clan/flake-module.nix
|
|
./values/flake-module.nix
|
|
];
|
|
flake.lib = import ./default.nix {
|
|
inherit lib inputs;
|
|
inherit (inputs) nixpkgs;
|
|
clan-core = self;
|
|
};
|
|
}
|