tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
git-series: 0.9.1 -> unstable-2019-10-15
V
3 years ago
f346d282
947b2f9f
+13
-31
1 changed file
expand all
collapse all
unified
split
pkgs
development
tools
git-series
default.nix
+13
-31
pkgs/development/tools/git-series/default.nix
···
1
-
{ lib, fetchFromGitHub, fetchpatch, rustPlatform
2
-
, openssl, cmake, perl, pkg-config, zlib, curl, libgit2, libssh2
3
}:
4
5
-
with rustPlatform;
6
-
7
-
buildRustPackage rec {
8
-
version = "0.9.1";
9
pname = "git-series";
0
10
11
src = fetchFromGitHub {
12
owner = "git-series";
13
repo = "git-series";
14
-
rev = version;
15
-
sha256 = "07mgq5h6r1gf3jflbv2khcz32bdazw7z1s8xcsafdarnm13ps014";
16
};
17
18
-
cargoSha256 = "0870f4rd98fbmyl8524ivfg3xf4qpzb1x68q1idnl47mmf68pyx8";
19
20
-
cargoPatches = [
21
-
(fetchpatch {
22
-
url = "https://github.com/Mic92/git-series/commit/3aa30a47d74ebf90b444dccdf8c153f07f119483.patch";
23
-
sha256 = "06v8br9skvy75kcw2zgbswxyk82sqzc8smkbqpzmivxlc2i9rnh0";
24
-
})
25
-
# Update Cargo.lock to allow using OpenSSL 1.1
26
-
(fetchpatch {
27
-
url = "https://github.com/edef1c/git-series/commit/11fe70ffcc18200e5f2a159c36aab070e8ff4228.patch";
28
-
sha256 = "0clwllf9mrhq86dhzyyhkw1q2ggpgqpw7s05dvp3gj9zhfsyya4s";
29
-
})
30
-
# Cargo.lock: Update url, which fixes incompatibility with NLL
31
-
(fetchpatch {
32
-
url = "https://github.com/edef1c/git-series/commit/27ff2ecf2d615dae1113709eca0e43596de12ac4.patch";
33
-
sha256 = "1byjbdcx56nd0bbwz078bl340rk334mb34cvaa58h76byvhpkw10";
34
-
})
35
-
];
36
37
LIBGIT2_SYS_USE_PKG_CONFIG = true;
38
LIBSSH2_SYS_USE_PKG_CONFIG = true;
39
-
nativeBuildInputs = [ cmake pkg-config perl ];
40
-
buildInputs = [ openssl zlib curl libgit2 libssh2 ];
41
42
-
postBuild = ''
43
install -D "$src/git-series.1" "$out/man/man1/git-series.1"
44
'';
45
46
meta = with lib; {
47
description = "A tool to help with formatting git patches for review on mailing lists";
48
longDescription = ''
49
-
git series tracks changes to a patch series over time. git
50
-
series also tracks a cover letter for the patch series,
51
-
formats the series for email, and prepares pull requests.
52
'';
53
homepage = "https://github.com/git-series/git-series";
54
···
1
+
{ lib, rustPlatform, fetchFromGitHub
2
+
, pkg-config, openssl, zlib, curl, libgit2, libssh2
3
}:
4
5
+
rustPlatform.buildRustPackage rec {
0
0
0
6
pname = "git-series";
7
+
version = "unstable-2019-10-15";
8
9
src = fetchFromGitHub {
10
owner = "git-series";
11
repo = "git-series";
12
+
rev = "c570a015e15214be46a7fd06ba08526622738e20";
13
+
sha256 = "1i0m2b7ma6xvkg95k57gaj1wpc1rfvka6h8jr5hglxmqqbz6cb6w";
14
};
15
16
+
cargoSha256 = "1hmx14z3098c98achgii0jkcm4474iw762rmib77amcsxj73zzdh";
17
18
+
nativeBuildInputs = [ pkg-config ];
19
+
buildInputs = [ openssl zlib curl libgit2 libssh2 ];
0
0
0
0
0
0
0
0
0
0
0
0
0
0
20
21
LIBGIT2_SYS_USE_PKG_CONFIG = true;
22
LIBSSH2_SYS_USE_PKG_CONFIG = true;
0
0
23
24
+
postInstall = ''
25
install -D "$src/git-series.1" "$out/man/man1/git-series.1"
26
'';
27
28
meta = with lib; {
29
description = "A tool to help with formatting git patches for review on mailing lists";
30
longDescription = ''
31
+
git series tracks changes to a patch series over time. git
32
+
series also tracks a cover letter for the patch series,
33
+
formats the series for email, and prepares pull requests.
34
'';
35
homepage = "https://github.com/git-series/git-series";
36