Skip to content

Commit 980c830

Browse files
committed
nix: set nim cache to proper tmp directory
Otherwise we end up with cache collisions like this in CI : ``` > Error: cannot open '/tmp/nim/libsds_d/@z..@f..@f..@f..@f..@f.. @ffgber@f6y2zz1uv2lzi4ln2717py8m0aix64u56-avz-hajenccrq-2.2.4@favz @fyvo@fflfgrz@frkprcgvbaf.nim.c' ```
1 parent 35a33ad commit 980c830

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

nix/shell.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ in pkgs.mkShell {
2121
];
2222

2323
# Avoid compiling Nim itself.
24+
# Setting nim cache to proper tmp location avoids cache collision in CI
2425
shellHook = ''
2526
export USE_SYSTEM_NIM=1
27+
export XDG_CACHE_HOME="$TMPDIR"
2628
'';
2729
}

0 commit comments

Comments
 (0)