File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3030 dontConfigure = true ;
3131 dontInstall = true ;
3232 doCheck = true ;
33+ NO_COLOR = 1 ; # prevent escape codes from messing up the `nix log`
34+ PACKAGE_DIR = pkgs . callPackage ./deps.nix { zig = zig ; } ;
3335 buildPhase = ''
34- mkdir -p .cache
35- ln -s ${ pkgs . callPackage ./deps.nix { zig = zig ; } } .cache/p
36- zig build install --cache-dir $(pwd)/.zig-cache --global-cache-dir $(pwd)/.cache -Dcpu=baseline -Doptimize=ReleaseSafe --prefix $out
36+ zig build install --global-cache-dir $(pwd)/.cache --system $PACKAGE_DIR -Dcpu=baseline -Doptimize=ReleaseSafe --prefix $out
3737 '' ;
3838 checkPhase = ''
39- zig build test --cache-dir $(pwd)/.zig- cache --global-cache-dir $(pwd)/.cache -Dcpu=baseline
39+ zig build test --global- cache-dir $(pwd)/.cache --system $PACKAGE_DIR -Dcpu=baseline
4040 '' ;
4141 } ;
4242 }
You can’t perform that action at this time.
0 commit comments