nixpkgs-suyu/pkgs/development/tools/impl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
635 B
Nix
Raw Normal View History

2020-12-29 10:49:19 +01:00
{ buildGoModule, lib, fetchFromGitHub }:
2018-11-03 05:47:38 +01:00
2020-12-29 10:49:19 +01:00
buildGoModule rec {
pname = "impl";
2022-04-07 23:20:40 +02:00
version = "1.1.0";
2018-11-03 05:47:38 +01:00
src = fetchFromGitHub {
owner = "josharian";
repo = "impl";
2020-12-29 10:49:19 +01:00
rev = "v${version}";
2022-04-07 23:20:40 +02:00
sha256 = "sha256-OztQR1NusP7/FTm5kmuSSi1AC47DJFki7vVlPQIl6+8=";
2018-11-03 05:47:38 +01:00
};
2022-04-07 23:20:40 +02:00
vendorSha256 = "sha256-+5+CM5iGV54zRa7rJoQDBWrO98icNxlAv8JwATynanY=";
2020-12-29 10:49:19 +01:00
2022-04-07 23:20:40 +02:00
preCheck = ''
export GOROOT="$(go env GOROOT)"
'';
2018-11-03 05:47:38 +01:00
meta = with lib; {
description = "Generate method stubs for implementing an interface";
homepage = "https://github.com/josharian/impl";
2018-11-03 05:47:38 +01:00
license = licenses.mit;
maintainers = with maintainers; [ kalbasit ];
};
}