mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
58 lines
1.3 KiB
Nix
58 lines
1.3 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, git
|
|
, libiconv
|
|
, ncurses
|
|
, openssl
|
|
, pkg-config
|
|
, rustPlatform
|
|
, sqlite
|
|
, stdenv
|
|
, Security
|
|
, SystemConfiguration
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "git-branchless";
|
|
version = "0.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "arxanas";
|
|
repo = "git-branchless";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-t3nzElicRbOTI+1nD+CGQk9u83FUUNgJ0OpylPZdlOs=";
|
|
};
|
|
|
|
cargoHash = "sha256-RfZnPQN+BSJ2YmCEMCPWY477sJue/L++3aL+U15C1Ro=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
ncurses
|
|
openssl
|
|
sqlite
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
Security
|
|
SystemConfiguration
|
|
libiconv
|
|
];
|
|
|
|
preCheck = ''
|
|
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
|
|
checkFlags = [
|
|
"--skip=test_switch_pty"
|
|
"--skip=test_next_ambiguous_interactive"
|
|
"--skip=test_switch_auto_switch_interactive"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A suite of tools to help you visualize, navigate, manipulate, and repair your commit history";
|
|
homepage = "https://github.com/arxanas/git-branchless";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ msfjarvis nh2 hmenke ];
|
|
};
|
|
}
|