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; inherit (flakelight.types) coercedTo' drv nullable optFunctionTo stringLike;
mkCheck = name: pkgs: cmd: mkCheck = name: pkgs: cmd:
pkgs.runCommand "check-${name}" { } '' pkgs.runCommand "check-${name}"
cp --no-preserve=mode -r ${src} src { allowSubstitutes = false; }
cd src ''
${cmd} cp --no-preserve=mode -r ${src} src
touch $out cd src
''; ${cmd}
touch $out
'';
checkType = mkOptionType { checkType = mkOptionType {
name = "checkType"; name = "checkType";