git-branchless: 0.9.0 -> 0.10.0 & fix build (#342278)

This commit is contained in:
Sefa Eyeoglu 2024-10-21 09:09:06 +02:00 committed by GitHub
commit 47626c904b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,16 +15,16 @@
rustPlatform.buildRustPackage rec {
pname = "git-branchless";
version = "0.9.0";
version = "0.10.0";
src = fetchFromGitHub {
owner = "arxanas";
repo = "git-branchless";
rev = "v${version}";
hash = "sha256-4RRSffkAe0/8k4SNnlB1iiaW4gWFTuYXplVBj2aRIdU=";
hash = "sha256-8uv+sZRr06K42hmxgjrKk6FDEngUhN/9epixRYKwE3U=";
};
cargoHash = "sha256-Jg4d7tJXr2O1sEDdB/zk+7TPBZvgHlmW8mNiXozLKV8=";
cargoHash = "sha256-AEEAHMKGVYcijA+Oget+maDZwsk/RGPhHQfiv+AT4v8=";
nativeBuildInputs = [ pkg-config ];
@ -40,7 +40,7 @@ rustPlatform.buildRustPackage rec {
libiconv
];
postInstall = ''
postInstall = lib.optionalString (with stdenv; buildPlatform.canExecute hostPlatform) ''
$out/bin/git-branchless install-man-pages $out/share/man
'';
@ -48,8 +48,15 @@ rustPlatform.buildRustPackage rec {
export TEST_GIT=${git}/bin/git
export TEST_GIT_EXEC_PATH=$(${git}/bin/git --exec-path)
'';
# FIXME: these tests deadlock when run in the Nix sandbox
# Note that upstream has disabled CI tests for git>=2.46
# See: https://github.com/arxanas/git-branchless/issues/1416
# https://github.com/arxanas/git-branchless/pull/1417
# To be re-enabled once arxanas/git-branchless#1416 is resolved
doCheck = false;
checkFlags = [
# FIXME: these tests deadlock when run in the Nix sandbox
"--skip=test_switch_pty"
"--skip=test_next_ambiguous_interactive"
"--skip=test_switch_auto_switch_interactive"
@ -63,6 +70,7 @@ rustPlatform.buildRustPackage rec {
maintainers = with maintainers; [
nh2
hmenke
bryango
];
};
}