mirror of
https://github.com/nix-community/flakelight.git
synced 2025-06-20 17:47:45 +02:00
Don't substitute flake checks
Querying caches is slow and these are unlikely to be found on a cache.
This commit is contained in:
parent
f6e77f2219
commit
9c4ffe2b9e
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user