Skip to content

Commit 89be49e

Browse files
TheTomclaude
authored andcommitted
fix(nix): remove duplicate spirv-headers function arg (ggml-org#81)
Two well-meaning fixes both added `spirv-headers` to the package.nix function pattern arglist (line 19 and line 22 on current HEAD), causing a hard parse-time failure on any nix evaluation: error: duplicate formal function argument 'spirv-headers' at .devops/nix/package.nix:22:3: 21| shaderc, 22| spirv-headers, | ^ 23| useBlas ? Drops the second occurrence. The remaining single declaration is what the rest of the file actually references (line 19 binds the input; `vulkanBuildInputs` and `nativeBuildInputs` consume it once each). Reported by @cguentherTUChemnitz in ggml-org#81 (originally), then re-confirmed by @alanscodelog on the current tip after two prior fix attempts both landed the same line. Verified: fixed file parses clean via nix-instantiate; injecting the duplicate back reproduces the exact error message above. Closes ggml-org#81. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 7d88227 commit 89be49e

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

.devops/nix/package.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
spirv-headers,
2020
openssl,
2121
shaderc,
22-
spirv-headers,
2322
useBlas ?
2423
builtins.all (x: !x) [
2524
useCuda

0 commit comments

Comments
 (0)