Commit Graph

39 Commits

Author SHA1 Message Date
Stefan Frijters
c0c3749ea6 git: remove uses of *FlagsArray
Since structuredAttrs are enabled, the *Flags variables already are arrays.
2026-08-14 17:26:35 +02:00
Stefan Frijters
a3c24cd214 git: enable strictDeps 2026-08-14 17:23:00 +02:00
Ihar Hrachyshka
8faec7a146 git: fix darwin crashes when dealing with unicode filenames 2026-07-20 19:25:42 -04:00
Adam Dinwoodie
7d44dc49ab git: 2.54.0 -> 2.55.0
Changelog: https://github.com/git/git/blob/v2.55.0/Documentation/RelNotes/2.55.0.adoc

Packaging changes:

- disable the t1517 test, since it's clearly fragile when run against an
  installed Git package
- change Rust argument handling to match the upstream project's switch
  from Rust being opt-in to opt-out
- explicitly set `debug` to an empty string in the installCheck flags,
  to avoid the test suite printing debug output and triggering new
  failures in the test harness
- remove an osx/rust patch that has been fixed upstream
2026-07-11 15:27:56 +01:00
Adam Dinwoodie
89cdf1a803 git: fix update script
The existing update script is clearly broken, since it's trying to
update the package definition in a file that hasn't existed for a long
time.  Replace it with a tested invocation of `nix-update`.
2026-06-30 17:27:16 +01:00
Philip Taron
8d96d08d53 git: fix cross compilation (#526197) 2026-06-05 17:26:31 +00:00
Palmer Cox
bbe694f8ea git: Fix cross compilation
The problem was that Cargo didn't have a way to find a linker for the
build platform which is required to link the build script. So, when
cross compiling we add in the standard build -> build compiler so that
it can compile the build script.

This fix was taken from the ideas of @magicquark and @nwf in
https://github.com/NixOS/nixpkgs/issues/523378.

Fixes #523378
2026-06-05 16:42:31 +00:00
Adam Dinwoodie
d01101d8e2 git: use finalAttrs for doInstallCheck config
For easier overriding with `git.override` or `git.overrideAttrs`,
determine whether configuration related to running the install checks is
present based on whether the install checks are actually being run, not
on the function argument which may not be the same.
2026-05-30 16:36:30 +01:00
Audrey Dutcher
3293eb7d55 git: disable some tests failing on FreeBSD for no good reason 2026-05-22 12:38:48 -04:00
nixpkgs-ci[bot]
ddc4da5d18 Merge master into staging-next 2026-05-20 07:14:53 +00:00
Angel J
06844ef6f1 git: add passthru test for git-svn version 2026-05-13 21:03:41 -07:00
Jörg Thalheim
4f07cfde7d [staging] git: fix flaky t7703 on ZFS by ignoring ls -l 'total' line (#514713) 2026-05-04 10:43:26 +00:00
Jörg Thalheim
2332245a0d git: fix flaky t7703 on ZFS by ignoring ls -l 'total' line
t7703-repack-geometric tests 11 and 12, added in upstream 6ce9d558ce
(first shipped in 2.53.0), assert that a no-op repack leaves the pack
directory untouched by comparing full `ls -l` output. The leading
`total N` block-count header is not stable on copy-on-write or
compressing filesystems such as ZFS, where delayed allocation can change
the reported value between two back-to-back invocations even though the
files are byte-identical. This makes gitMinimal's installCheck fail
nondeterministically on ZFS-backed builders.

Apply the upstream-submitted patch that strips that header before
comparing. Verified with 20 consecutive runs on ZFS.

Fixes #498789.
Link: https://lore.kernel.org/git/20260504101429.340123-1-joerg@thalheim.io/
2026-05-04 12:31:56 +02:00
nixpkgs-ci[bot]
24fd34bdf0 Merge staging-next into staging 2026-04-30 12:34:15 +00:00
Colin
497958c364 git: use cargoShortTarget for RUST_TARGET_DIR in cross compilation (#504155) 2026-04-27 23:32:30 +00:00
Alexander Bantyev
ce2358fd36 git: fix meta.changelog link 2026-04-27 22:55:29 +02:00
Tom Herbers
afe6607f13 git: 2.53.0 -> 2.54.0
Changelog: https://git.kernel.org/pub/scm/git/git.git/tree/Documentation/RelNotes/2.54.0.adoc?h=v2.54.0
2026-04-21 10:26:02 +02:00
fzdslr-nw
d81dcd939a git: use cargoShortTarget for RUST_TARGET_DIR in cross compilation 2026-03-27 16:49:01 +00:00
nixpkgs-ci[bot]
23ee7d594c Merge master into staging-next 2026-03-14 00:21:49 +00:00
Alexander Bantyev
2839911e81 various: add security-review team as a maintainer
Adds the @NixOS/security-review team as a maintainer to multiple
packages deemed to be important security-wise.

For the motivation of the package list, see:
https://github.com/NixOS/nixpkgs/issues/494349#issuecomment-4005099033
2026-03-05 15:19:44 +01:00
Michael Daniels
4b7d598de4 Reapply "Merge branch 'staging-next' into staging"
This reverts commit 4982f4c206.

The eval failure was not introduced by my merge!
2026-02-27 19:47:50 -05:00
Michael Daniels
4982f4c206 Revert "Merge branch 'staging-next' into staging"
This reverts commit c00451dc71, reversing
changes made to 71467300b6.
2026-02-27 19:35:48 -05:00
Michael Daniels
c00451dc71 Merge branch 'staging-next' into staging 2026-02-27 19:32:01 -05:00
Nathaniel Wesley Filardo
ce7d77de51 git: fix rust cross-compilation
... while trying to avoid triggering rebuilds in the non-cross case.

It feels like there is surely a better way to do this?
2026-02-26 16:33:52 +00:00
Vladimír Čunát
62db20f125 Revert "git: avoid rebuilds on non-Darwin for now"
This reverts commit b296e3ec29.
2026-02-16 08:00:10 +01:00
Vladimír Čunát
b296e3ec29 git: avoid rebuilds on non-Darwin for now 2026-02-15 19:06:39 +01:00
Randy Eckenrode
f01c7ebc2b git: fix build with osxkeychain
Cherry-pick a patch from Git next and make further adjustments to allow
it to build in our environment.
2026-02-15 12:19:28 -05:00
Michael Daniels
c69b8918dd git: 2.52.0 -> 2.53.0 (#486386) 2026-02-08 17:02:50 +00:00
nixpkgs-ci[bot]
e217c74eac Merge staging-next into staging 2026-02-06 18:16:24 +00:00
Adam Dinwoodie
0b72ab042c git: 2.52.0 -> 2.53.0 2026-02-02 18:23:38 +00:00
Markus Sütter
196b385317 various: add meta.identifier.cpeParts to a batch of packages 2026-02-02 09:22:55 +01:00
Adam Dinwoodie
5fbf35aed7 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!
2026-01-28 08:56:39 +00:00
OPNA2608
902251dec7 git: Apply patch to fix uninitialised memory & t8020 test on big-endian 2026-01-08 08:56:23 +01:00
Brian Lyles
61f648c336 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`.
2026-01-04 20:22:00 -06:00
Philip Taron
fb7692fc2e git: add rust opt-in (#476300) 2026-01-02 21:46:00 +00:00
David McFarland
dac093120f git: fix cygwin build 2026-01-02 12:57:20 -04:00
Brian Lyles
0869356f40 git: add rust opt-in
With v2.52.0, git now includes the option to use a rust implementation
of some core logic [1]. Using rust/cargo as part of the build process is
currently still optional, though expected to become mandatory in Git
v3.0.

In preparation, introduce cargo/rustc into the Git package build. This
is disabled by default and enabled via a new `rustSupport` argument to
mirror the fact that this is opt-in in Git itself.

[1]: lore.kernel.org/git/20251002-b4-pks-rust-breaking-change-v8-0-3a89fd5b1ce7@pks.im/
2026-01-02 10:41:43 -06:00
K900
07ec151dd8 Merge remote-tracking branch 'origin/staging-next' into staging 2025-12-14 21:54:15 +03:00
Aliaksandr
6881ea13ec git: move to by-name 2025-12-12 07:58:10 +02:00