git-branchless: fix fetchCargoVendor path, add version check, fix license (#503055)

This commit is contained in:
Gergő Gutyina
2026-03-29 10:04:19 +00:00
committed by GitHub
+10 -2
View File
@@ -8,6 +8,7 @@
rustPlatform,
sqlite,
stdenv,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@@ -30,7 +31,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
# - https://github.com/facebook/sapling/commit/9e27acb84605079bf4e305afb637a4d6801831ac
postPatch = ''
(
cd ../git-branchless-*-vendor/esl01-indexedlog-*/
cd $cargoDepsCopy/*/esl01-indexedlog-*/
patch -p1 < ${./fix-esl01-indexedlog-for-rust-1_89.patch}
)
'';
@@ -67,10 +68,17 @@ rustPlatform.buildRustPackage (finalAttrs: {
"--skip=test_switch_auto_switch_interactive"
];
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;
meta = {
description = "Suite of tools to help you visualize, navigate, manipulate, and repair your commit history";
homepage = "https://github.com/arxanas/git-branchless";
license = lib.licenses.gpl2Only;
license = [
lib.licenses.asl20
lib.licenses.mit
];
mainProgram = "git-branchless";
maintainers = with lib.maintainers; [
nh2