mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
8d7be6e3d0
The previous commit is kept as a record of the currently failing tests, for future reference.
77 lines
1.8 KiB
Nix
77 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
git,
|
|
libiconv,
|
|
ncurses,
|
|
openssl,
|
|
pkg-config,
|
|
rustPlatform,
|
|
sqlite,
|
|
stdenv,
|
|
Security,
|
|
SystemConfiguration,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "git-branchless";
|
|
version = "0.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "arxanas";
|
|
repo = "git-branchless";
|
|
rev = "v${version}";
|
|
hash = "sha256-8uv+sZRr06K42hmxgjrKk6FDEngUhN/9epixRYKwE3U=";
|
|
};
|
|
|
|
cargoHash = "sha256-AEEAHMKGVYcijA+Oget+maDZwsk/RGPhHQfiv+AT4v8=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs =
|
|
[
|
|
ncurses
|
|
openssl
|
|
sqlite
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
Security
|
|
SystemConfiguration
|
|
libiconv
|
|
];
|
|
|
|
postInstall = lib.optionalString (with stdenv; buildPlatform.canExecute hostPlatform) ''
|
|
$out/bin/git-branchless install-man-pages $out/share/man
|
|
'';
|
|
|
|
preCheck = ''
|
|
export TEST_GIT=${git}/bin/git
|
|
export TEST_GIT_EXEC_PATH=$(${git}/bin/git --exec-path)
|
|
'';
|
|
|
|
# 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"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Suite of tools to help you visualize, navigate, manipulate, and repair your commit history";
|
|
homepage = "https://github.com/arxanas/git-branchless";
|
|
license = licenses.gpl2Only;
|
|
mainProgram = "git-branchless";
|
|
maintainers = with maintainers; [
|
|
nh2
|
|
hmenke
|
|
bryango
|
|
];
|
|
};
|
|
}
|