Commit 2b7b283
authored
fix(nix): move build tools from buildInputs to nativeBuildInputs
perl, clang, and pkg-config are build-time tools that need to be on $PATH during cargo build. In Nix, nativeBuildInputs are added to $PATH; buildInputs are not (they go to $NIX_LDFLAGS for runtime linkage).
With perl in buildInputs, the openssl-sys vendored build fails when the flake is consumed as an input from another flake:
cargo:warning=configuring OpenSSL build: Command 'perl' not found.
openssl stays in buildInputs (runtime linkage). clang, perl, pkg-config move to nativeBuildInputs (build tools, need $PATH).
Follow-up to #966. Fixes #894 for flake consumers.1 parent 6851bba commit 2b7b283
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
0 commit comments