Skip to content

Commit

Permalink
nix: only set env variables in buildPhase
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix committed Dec 22, 2024
1 parent af3a97e commit b401aab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
dontConfigure = true;
dontInstall = true;
doCheck = true;
NO_COLOR = 1; # prevent escape codes from messing up the `nix log`
PACKAGE_DIR = pkgs.callPackage ./deps.nix { zig = zig; };
buildPhase = ''
NO_COLOR=1 # prevent escape codes from messing up the `nix log`
PACKAGE_DIR=${pkgs.callPackage ./deps.nix { zig = zig; }}
zig build install --global-cache-dir $(pwd)/.cache --system $PACKAGE_DIR -Dcpu=baseline -Doptimize=ReleaseSafe --prefix $out
'';
checkPhase = ''
Expand Down

0 comments on commit b401aab

Please sign in to comment.