blob: 2ab7f6b7760ff4a33c674da80e753d53d7783743 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{ lib
, buildGoModule
, fetchFromGitHub
, testers
, patch2pr
}:
buildGoModule rec {
pname = "patch2pr";
version = "0.27.0";
src = fetchFromGitHub {
owner = "bluekeyes";
repo = "patch2pr";
rev = "v${version}";
hash = "sha256-HKPw9yKJGakY2XTuMr2Beq+UxMnu/je3aEHsM1UR/Sk=";
};
vendorHash = "sha256-1ufdkCvTi5hNlpwZZKrkfpoRhWUp7fwHuZ1BPbkkxkY=";
ldflags = [
"-X main.version=${version}"
"-X main.commit=${src.rev}"
];
passthru.tests.patch2pr-version = testers.testVersion {
package = patch2pr;
command = "${patch2pr.meta.mainProgram} --version";
version = version;
};
meta = with lib; {
description = "Create pull requests from patches without cloning the repository";
homepage = "https://github.com/bluekeyes/patch2pr";
changelog = "https://github.com/bluekeyes/patch2pr/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ katrinafyi ];
mainProgram = "patch2pr";
};
}
|