a4fd2de975
GitOrigin-RevId: 34ad166a830d3ac1541dcce571c52231f2f0865a
33 lines
930 B
Nix
33 lines
930 B
Nix
{ stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, libiconv, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "git-trim";
|
|
version = "0.4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "foriequal0";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1rb9dhj7b7mjrhsvm9vw5gzjfxj10idnzv488jkfdz7sfhd3fcvz";
|
|
};
|
|
|
|
cargoSha256 = "1q62gqqhf78ljcvzp7yrnr0vk65rif2f7axzjq0b87prbcsr7ij4";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ] ++ stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ];
|
|
|
|
postInstall = ''
|
|
install -Dm644 -t $out/share/man/man1/ docs/git-trim.1
|
|
'';
|
|
|
|
# fails with sandbox
|
|
doCheck = false;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Automatically trims your branches whose tracking remote refs are merged or gone";
|
|
homepage = "https://github.com/foriequal0/git-trim";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.marsam ];
|
|
};
|
|
}
|