Skip to content

Commit

Permalink
fix nondeterministic nix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dermetfan committed May 6, 2024
1 parent 4c76387 commit 170864f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nix/overlays/zig/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
++ [
(zig.hook.overrideAttrs {
zig_default_flags = [
# Not passing -Dcpu=baseline as that overrides our target options from build.zig.
# ensure deterministic build
# XXX make a proper target triple like in https://github.com/Cloudef/zig2nix/blob/362cc6f3fe27d73f3663d8c2c25f23ca75151ed6/src/lib.nix
"-Dcpu=baseline"

"--system"
finalAttrs.passthru.deps
Expand Down

0 comments on commit 170864f

Please sign in to comment.