From 9c4ffe2b9e848fb8ae6b51a3ee71c5f3055109d9 Mon Sep 17 00:00:00 2001 From: Archit Gupta Date: Tue, 22 Apr 2025 19:23:59 -0700 Subject: [PATCH] Don't substitute flake checks Querying caches is slow and these are unlikely to be found on a cache. --- builtinModules/checks.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/builtinModules/checks.nix b/builtinModules/checks.nix index 4c2afd5..c8f51a2 100644 --- a/builtinModules/checks.nix +++ b/builtinModules/checks.nix @@ -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";