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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user