2019-03-12 20:27:45 +01:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, rustPlatform, openssl_1_0_2, cmake, perl, pkgconfig, zlib }:
|
2017-05-09 13:04:43 +02:00
|
|
|
|
|
|
|
with rustPlatform;
|
|
|
|
|
|
|
|
buildRustPackage rec {
|
|
|
|
version = "0.9.1";
|
2019-08-31 13:41:23 +02:00
|
|
|
pname = "git-series";
|
2017-05-09 13:04:43 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "git-series";
|
|
|
|
repo = "git-series";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "07mgq5h6r1gf3jflbv2khcz32bdazw7z1s8xcsafdarnm13ps014";
|
|
|
|
};
|
|
|
|
|
2019-05-25 13:03:08 +02:00
|
|
|
cargoSha256 = "07b25pcndhwvpwa5khdh8y1fl44hdv6ff2pfj1mjc0wchbspqm6q";
|
2017-08-05 16:38:48 +02:00
|
|
|
|
2019-10-16 19:19:32 +02:00
|
|
|
cargoPatches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/Mic92/git-series/commit/3aa30a47d74ebf90b444dccdf8c153f07f119483.patch";
|
|
|
|
sha256 = "06v8br9skvy75kcw2zgbswxyk82sqzc8smkbqpzmivxlc2i9rnh0";
|
|
|
|
})
|
|
|
|
];
|
2017-05-09 13:04:43 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig perl ];
|
2019-03-12 20:27:45 +01:00
|
|
|
buildInputs = [ openssl_1_0_2 zlib ];
|
2017-05-09 13:04:43 +02:00
|
|
|
|
2017-06-05 18:58:16 +02:00
|
|
|
postBuild = ''
|
2017-08-05 16:38:48 +02:00
|
|
|
install -D "$src/git-series.1" "$out/man/man1/git-series.1"
|
2017-06-05 18:58:16 +02:00
|
|
|
'';
|
|
|
|
|
2017-05-09 13:04:43 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A tool to help with formatting git patches for review on mailing lists";
|
|
|
|
longDescription = ''
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
homepage = https://github.com/git-series/git-series;
|
|
|
|
|
|
|
|
license = licenses.mit;
|
2017-12-05 23:20:11 +01:00
|
|
|
maintainers = [ maintainers.vmandela ];
|
2017-05-09 13:04:43 +02:00
|
|
|
};
|
|
|
|
}
|