git: move rust toolchain to nativeBuildInputs

0869356f40 (git: add rust opt-in, 2025-12-31) added rustc and cargo to
`buildInputs`, but they are needed only at build time, not at run-time.
This means they belong in `nativeBuildInputs`.
This commit is contained in:
Brian Lyles
2026-01-04 20:22:00 -06:00
parent 501d9459f8
commit 61f648c336
+4 -4
View File
@@ -171,6 +171,10 @@ stdenv.mkDerivation (finalAttrs: {
docbook_xsl
docbook_xml_dtd_45
libxslt
]
++ lib.optionals rustSupport [
cargo
rustc
];
buildInputs = [
curl
@@ -189,10 +193,6 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optionals withLibsecret [
glib
libsecret
]
++ lib.optionals rustSupport [
cargo
rustc
];
# required to support pthread_cancel()