2022-03-04 12:05:10 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub
|
|
|
|
, pkg-config, openssl, zlib, curl, libgit2, libssh2
|
2019-11-23 02:14:30 +00:00
|
|
|
}:
|
2017-05-09 12:04:43 +01:00
|
|
|
|
2022-03-04 12:05:10 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 12:41:23 +01:00
|
|
|
pname = "git-series";
|
2022-03-04 12:05:10 +00:00
|
|
|
version = "unstable-2019-10-15";
|
2017-05-09 12:04:43 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "git-series";
|
|
|
|
repo = "git-series";
|
2022-03-04 12:05:10 +00:00
|
|
|
rev = "c570a015e15214be46a7fd06ba08526622738e20";
|
|
|
|
sha256 = "1i0m2b7ma6xvkg95k57gaj1wpc1rfvka6h8jr5hglxmqqbz6cb6w";
|
2017-05-09 12:04:43 +01:00
|
|
|
};
|
|
|
|
|
2022-03-04 12:05:10 +00:00
|
|
|
cargoSha256 = "1hmx14z3098c98achgii0jkcm4474iw762rmib77amcsxj73zzdh";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl zlib curl libgit2 libssh2 ];
|
2017-05-09 12:04:43 +01:00
|
|
|
|
2019-10-17 08:08:32 +01:00
|
|
|
LIBGIT2_SYS_USE_PKG_CONFIG = true;
|
2019-11-23 02:16:18 +00:00
|
|
|
LIBSSH2_SYS_USE_PKG_CONFIG = true;
|
2017-05-09 12:04:43 +01:00
|
|
|
|
2022-03-04 12:05:10 +00:00
|
|
|
postInstall = ''
|
2017-08-05 15:38:48 +01:00
|
|
|
install -D "$src/git-series.1" "$out/man/man1/git-series.1"
|
2017-06-05 17:58:16 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2017-05-09 12:04:43 +01:00
|
|
|
description = "A tool to help with formatting git patches for review on mailing lists";
|
|
|
|
longDescription = ''
|
2022-03-04 12:05:10 +00:00
|
|
|
git series tracks changes to a patch series over time. git
|
|
|
|
series also tracks a cover letter for the patch series,
|
|
|
|
formats the series for email, and prepares pull requests.
|
2017-05-09 12:04:43 +01:00
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/git-series/git-series";
|
2017-05-09 12:04:43 +01:00
|
|
|
|
|
|
|
license = licenses.mit;
|
2019-10-17 18:47:12 +01:00
|
|
|
maintainers = with maintainers; [ edef vmandela ];
|
2017-05-09 12:04:43 +01:00
|
|
|
};
|
|
|
|
}
|