21 Commits

Author SHA1 Message Date
r4bbit
4fc1a97db6
fix(nix): build risc0 Metal kernels on macOS by fixing xcrun env
risc0 compiles its Metal (GPU) prover kernels by invoking `xcrun metal` /
`xcrun metallib`. Under nix, the darwin stdenv exports DEVELOPER_DIR and
SDKROOT pointing at its own SDK, which makes xcrun look for the `metal`
tool in the wrong place and fail with:

    error: cannot execute tool 'metal' due to missing Metal Toolchain;
           use: xcodebuild -downloadComponent MetalToolchain

...even when a working Metal Toolchain is installed (the same call succeeds
in a clean environment where those vars are unset).

Wrap xcrun with a small shim, placed first in PATH, that clears
DEVELOPER_DIR/SDKROOT for `metal`/`metallib` invocations only — so they
resolve the system Xcode Metal Toolchain — while every other xcrun call
passes through with the nix environment intact. This makes wallet-ffi
build with real GPU prover kernels on macOS, with no --override-input
workaround needed downstream.

Note: on recent macOS the Metal Toolchain is a per-user component, so
`xcodebuild -downloadComponent MetalToolchain` must have been run by the
building user (and builds still require `--option sandbox false`).
2026-06-24 10:09:47 +02:00
Pravdyvy
0fae6aada2 Merge branch 'main' into Pravdyvy/programs-elfs-deployments 2026-06-17 10:36:19 +03:00
gusto
1cd6dedf40
Bump blockchain deps and update flake 2026-06-13 14:38:17 +03:00
Pravdyvy
e39d617e4d fix(nix): last try 2026-06-12 18:53:53 +03:00
Pravdyvy
7c49b6a861 fix(nix): test fixed commit 2026-06-12 16:15:02 +03:00
Pravdyvy
d43449b8d2 fix(nix): nix circuits vars 2026-06-11 18:07:39 +03:00
Pravdyvy
c37a3c30a9 fix(nix): headers path 2026-06-05 17:45:06 +03:00
Pravdyvy
8a4a6cd12a fix(nix): python3 dep added 2026-06-05 17:31:36 +03:00
Pravdyvy
36b7228b6d fix: nix pin 2026-05-14 11:56:18 +03:00
Pravdyvy
cfabd91510 fix: nix pin 2026-05-14 11:54:32 +03:00
Pravdyvy
ec74dca893 fix: nix pin 2026-05-14 11:49:29 +03:00
Pravdyvy
904dd56187 fix: nix pin 2026-05-14 11:20:47 +03:00
Pravdyvy
130f35e997 fix(nix): nix fix 2026-05-14 07:52:14 +03:00
Pravdyvy
57831443e2 fix: nix update 2 2026-04-17 14:38:08 +03:00
Pravdyvy
173f7ef58a fix: nix update 1 2026-04-17 14:33:58 +03:00
danielSanchezQ
6887131364 Add circuits dependency 2026-02-27 12:13:25 +00:00
Daniel
9a61e64ccf Fix nix build 2026-02-24 15:27:39 +01:00
danielSanchezQ
0c90d42a0f Fix r0 build 2026-02-24 12:14:25 +00:00
Alejandro Cabeza Romero
67ada15c1b
Improve names. 2026-02-03 15:40:40 +01:00
Alejandro Cabeza Romero
81e4cfcba6
Add devshell to flake. 2026-02-03 15:40:06 +01:00
Alejandro Cabeza Romero
ed60e06ae2
Nixify 2026-02-03 15:40:06 +01:00