25 lines
639 B
Nix
25 lines
639 B
Nix
{ self, inputs, ... }:
|
|
let
|
|
inputOverrides = builtins.concatStringsSep " " (
|
|
builtins.map (input: " --override-input ${input} ${inputs.${input}}") (builtins.attrNames inputs)
|
|
);
|
|
in
|
|
{
|
|
perSystem =
|
|
{ pkgs, system, ... }:
|
|
{
|
|
checks = {
|
|
lib-values-eval = pkgs.runCommand "tests" { nativeBuildInputs = [ pkgs.nix-unit ]; } ''
|
|
export HOME="$(realpath .)"
|
|
|
|
nix-unit --eval-store "$HOME" \
|
|
--extra-experimental-features flakes \
|
|
${inputOverrides} \
|
|
--flake ${self}#legacyPackages.${system}.evalTests-inventory
|
|
|
|
touch $out
|
|
'';
|
|
};
|
|
};
|
|
}
|