1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00
nixpkgs/pkgs/applications/version-management/git-and-tools/git-absorb/default.nix

31 lines
840 B
Nix
Raw Normal View History

2020-05-15 06:00:00 +01:00
{ stdenv, fetchFromGitHub, rustPlatform, installShellFiles, libiconv, Security }:
2018-11-16 00:39:26 +00:00
rustPlatform.buildRustPackage rec {
2019-07-15 01:00:00 +01:00
pname = "git-absorb";
2020-09-29 00:20:00 +01:00
version = "0.6.4";
2018-11-16 00:39:26 +00:00
src = fetchFromGitHub {
owner = "tummychow";
2019-07-15 01:00:00 +01:00
repo = pname;
2018-11-16 00:39:26 +00:00
rev = "refs/tags/${version}";
2020-09-29 00:20:00 +01:00
sha256 = "01hf9hbrigqn4qcz6jmprp7by9nh55k1r2d11g7sil5fpw6m2j9k";
2018-11-16 00:39:26 +00:00
};
2020-05-15 06:00:00 +01:00
nativeBuildInputs = [ installShellFiles ];
2018-11-16 00:39:26 +00:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ];
2020-09-29 00:20:00 +01:00
cargoSha256 = "04dkfjb6pxqaalw2y6yli9q58g8x8ppfmibivpvqifk8r8dhkdqp";
2020-05-15 06:00:00 +01:00
postInstall = ''
installManPage Documentation/git-absorb.1
'';
2018-11-16 00:39:26 +00:00
meta = with stdenv.lib; {
2019-07-15 01:00:00 +01:00
homepage = "https://github.com/tummychow/git-absorb";
2018-11-16 00:39:26 +00:00
description = "git commit --fixup, but automatic";
license = [ licenses.bsd3 ];
maintainers = [ maintainers.marsam ];
};
}