From 61f648c336afdbe885e7dc0787790ae98f718308 Mon Sep 17 00:00:00 2001 From: Brian Lyles Date: Sun, 4 Jan 2026 20:22:00 -0600 Subject: [PATCH] git: move rust toolchain to `nativeBuildInputs` 0869356f401a (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`. --- pkgs/by-name/gi/git/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/gi/git/package.nix b/pkgs/by-name/gi/git/package.nix index c4a4bd7e8334..fd9a5f2f5179 100644 --- a/pkgs/by-name/gi/git/package.nix +++ b/pkgs/by-name/gi/git/package.nix @@ -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()