What’s the idiomatic way to run nix flake check
such that only the current system checks are run?
I use the following hack currently:
check =
pkgs.runCommand "combined-checks"
{
checksss = builtins.attrValues self.checks.${system};
} ''
echo $checksss
touch $out
'';
Then, run: nix build .#check.x86_64-linux
.
But surely there must be a better way, so I don’t have to hardcode it in CI.