mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
Merge pull request #291104 from katrinafyi/patch2pr-init
patch2pr: init at 0.22.0
This commit is contained in:
commit
0151be1b32
40
pkgs/by-name/pa/patch2pr/package.nix
Normal file
40
pkgs/by-name/pa/patch2pr/package.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, testers
|
||||
, patch2pr
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "patch2pr";
|
||||
version = "0.22.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bluekeyes";
|
||||
repo = "patch2pr";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-tG0pSXmrWT5PCcR25XngbKAS3q9jKdDKqWdPqA62omE=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-Z6BHUD7WrEpUmCaLvrFYCQCSbhPhee+gR5ep1oLzqbE=";
|
||||
|
||||
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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user