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'
```
This commit is contained in:
Siddarth Kumar 2026-05-26 15:53:51 +05:30
parent 35a33adc98
commit 980c830415
No known key found for this signature in database
GPG Key ID: 599D10112BF518DB

View File

@ -21,7 +21,9 @@ in pkgs.mkShell {
];
# Avoid compiling Nim itself.
# Setting nim cache to proper tmp location avoids cache collision in CI
shellHook = ''
export USE_SYSTEM_NIM=1
export XDG_CACHE_HOME="$TMPDIR"
'';
}