Don't substitute flake checks

Querying caches is slow and these are unlikely to be found on a cache.
This commit is contained in:
Archit Gupta 2025-04-22 19:23:59 -07:00
parent f6e77f2219
commit 9c4ffe2b9e

View File

@ -10,12 +10,14 @@ let
inherit (flakelight.types) coercedTo' drv nullable optFunctionTo stringLike;
mkCheck = name: pkgs: cmd:
pkgs.runCommand "check-${name}" { } ''
cp --no-preserve=mode -r ${src} src
cd src
${cmd}
touch $out
'';
pkgs.runCommand "check-${name}"
{ allowSubstitutes = false; }
''
cp --no-preserve=mode -r ${src} src
cd src
${cmd}
touch $out
'';
checkType = mkOptionType {
name = "checkType";