Commit 62fc94d
fix(nix): build kcov in the dev shell on macOS
`zig build build-ci` builds the custom kcov coverage tool from source on every
platform, but the dev shell only provided kcov's link dependencies on Linux, so
on macOS the build failed with "unable to find dynamic system library 'z'/'curl'".
Provide curl/zlib/pkg-config on all platforms, and on macOS add libdwarf (kcov
links it as "dwarf"). kcov resolves system libraries through pkg-config but asks
for the module names "z"/"dwarf", which nixpkgs ships as "zlib"/"libdwarf"; add
alias .pc files so those resolve (the nix pkg-config wrapper only reads .pc dirs
from buildInputs, not an exported PKG_CONFIG_PATH).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 116746c commit 62fc94d
1 file changed
Lines changed: 25 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
41 | 51 | | |
42 | | - | |
43 | 52 | | |
44 | 53 | | |
45 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
46 | 66 | | |
47 | 67 | | |
48 | 68 | | |
| |||
53 | 73 | | |
54 | 74 | | |
55 | 75 | | |
56 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
57 | 79 | | |
58 | 80 | | |
59 | 81 | | |
| |||
0 commit comments