mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 22:10:14 +00:00
git: use Rust where possible
Future versions of Git are going to require Rust, and Rust was added as
a "test balloon" in v2.52.0 so downstream distributions -- such as
ourselves -- can start ironing out the problems. Support for this was
added as an option in #476300 / 0869356f40 (git: add rust opt-in,
2025-12-31), but the default packaging wasn't changed at that time.
To get as much exposure for that as possible, default to enabling
compilation with Rust where possible. There are two exceptions that
don't currently work:
- gitMinimal, which is currently required to build Rust, so cannot
depend on it without creating a circular dependency. Fixing that
bootstrap issue is a future project.
- Platforms that don't have any support for Rust. There's not much we
can do about those!
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
deterministic-host-uname, # trick Makefile into targeting the host platform when cross-compiling
|
||||
doInstallCheck ? !stdenv.hostPlatform.isDarwin, # extremely slow on darwin
|
||||
tests,
|
||||
rustSupport ? false,
|
||||
rustSupport ? lib.meta.availableOn stdenv.hostPlatform rustc,
|
||||
cargo,
|
||||
rustc,
|
||||
}:
|
||||
|
||||
@@ -1147,6 +1147,7 @@ with pkgs;
|
||||
osxkeychainSupport = false;
|
||||
pythonSupport = false;
|
||||
perlSupport = false;
|
||||
rustSupport = false; # Needed for bootstrap
|
||||
withpcre2 = false;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user