Skip to content

Commit 928ebeb

Browse files
committed
build(nix): set GOCACHE for tests
Signed-off-by: Roman Volosatovs <[email protected]>
1 parent 0999c5c commit 928ebeb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

flake.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
depsBuildBuild ? [],
8989
nativeBuildInputs ? [],
9090
nativeCheckInputs ? [],
91+
checkPhase ? "",
9192
...
9293
} @ args:
9394
with pkgs.lib; let
@@ -106,6 +107,12 @@
106107
depsBuildBuild = depsBuildBuild';
107108
}
108109
// optionalAttrs (args ? cargoArtifacts) {
110+
checkPhase =
111+
''
112+
export GOCACHE=$TMPDIR/go-cache
113+
''
114+
+ checkPhase;
115+
109116
depsBuildBuild =
110117
depsBuildBuild'
111118
++ optionals darwin2darwin [

0 commit comments

Comments
 (0)