620eecebfb
GitOrigin-RevId: 2deb07f3ac4eeb5de1c12c4ba2911a2eb1f6ed61
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, git
|
|
, libiconv
|
|
, ncurses
|
|
, openssl
|
|
, pkg-config
|
|
, rustPlatform
|
|
, sqlite
|
|
, stdenv
|
|
, Security
|
|
, SystemConfiguration
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "git-branchless";
|
|
version = "0.3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "arxanas";
|
|
repo = "git-branchless";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-knRRjTjnhpedcQTVpJnBsrnaeRbjZ2i3aABeE0LrQ+c=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-NyzsY5d4iC3zMSzmh9Qmd211oT6lmhUdvIfQdnzrtok=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
ncurses
|
|
openssl
|
|
sqlite
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
Security
|
|
SystemConfiguration
|
|
libiconv
|
|
];
|
|
|
|
preCheck = ''
|
|
export PATH_TO_GIT=${git}/bin/git
|
|
export GIT_EXEC_PATH=$(${git}/bin/git --exec-path)
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|