mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-23 20:44:12 +00:00
Merge pull request #232847 from figsoda/gopatch
This commit is contained in:
commit
d9e76c82e5
44
pkgs/development/tools/misc/gopatch/default.nix
Normal file
44
pkgs/development/tools/misc/gopatch/default.nix
Normal file
@ -0,0 +1,44 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, testers
|
||||
, gopatch
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "gopatch";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "uber-go";
|
||||
repo = "gopatch";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-RodRDP7n1hxez+9xpRlguuArJDVaYxVTpnXKqsyqnUw=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-vygEVVh/bBhV/FCrehDumrw2c1SdSZSdFjVSRoJsIig=";
|
||||
|
||||
subPackages = [
|
||||
"."
|
||||
];
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X=main._version=${version}"
|
||||
];
|
||||
|
||||
passthru.tests = {
|
||||
version = testers.testVersion {
|
||||
package = gopatch;
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Refactoring and code transformation tool for Go";
|
||||
homepage = "https://github.com/uber-go/gopatch";
|
||||
changelog = "https://github.com/uber-go/gopatch/blob/${src.rev}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ figsoda ];
|
||||
};
|
||||
}
|
@ -18435,6 +18435,8 @@ with pkgs;
|
||||
|
||||
gocd-server = callPackage ../development/tools/continuous-integration/gocd-server { };
|
||||
|
||||
gopatch = callPackage ../development/tools/misc/gopatch { };
|
||||
|
||||
goredo = callPackage ../development/tools/build-managers/goredo { };
|
||||
|
||||
gotify-server = callPackage ../servers/gotify { };
|
||||
|
Loading…
Reference in New Issue
Block a user