15 rustPlatform.buildRustPackage rec {
16 pname = "git-branchless";
19 src = fetchFromGitHub {
21 repo = "git-branchless";
23 hash = "sha256-ev56NzrEF7xm3WmR2a0pHPs69Lvmb4He7+kIBYiJjKY=";
26 cargoHash = "sha256-Ppw5TN/6zMNxFAx90Q9hQ7RdGxV+TT8UlOm68ldK8oc=";
28 nativeBuildInputs = [ pkg-config ];
34 ] ++ lib.optionals stdenv.isDarwin [
41 export TEST_GIT=${git}/bin/git
42 export TEST_GIT_EXEC_PATH=$(${git}/bin/git --exec-path)
44 # FIXME: these tests deadlock when run in the Nix sandbox
46 "--skip=test_switch_pty"
47 "--skip=test_next_ambiguous_interactive"
48 "--skip=test_switch_auto_switch_interactive"
52 description = "A suite of tools to help you visualize, navigate, manipulate, and repair your commit history";
53 homepage = "https://github.com/arxanas/git-branchless";
54 license = licenses.gpl2Only;
55 mainProgram = "git-branchless";
56 maintainers = with maintainers; [ msfjarvis nh2 hmenke ];