Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

goutline: init at 1.0.1 #334258

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22326,6 +22326,14 @@
github = "wuyoli";
githubId = 104238274;
};
wwmoraes = {
email = "[email protected]";
github = "wwmoraes";
githubId = 682095;
keys = [ { fingerprint = "32B4 330B 1B66 828E 4A96 9EEB EED9 9464 5D7C 9BDE"; } ];
matrix = "@wwmoraes:hachyderm.io";
name = "William Artero";
};
wykurz = {
email = "[email protected]";
github = "wykurz";
Expand Down
35 changes: 35 additions & 0 deletions pkgs/by-name/go/goutline/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
buildGoModule,
fetchFromGitHub,
go,
lib,
}:

buildGoModule rec {
pname = "goutline";
version = "1.0.1";

src = fetchFromGitHub {
owner = "1pkg";
repo = "goutline";
rev = "v${version}";
hash = "sha256-YZM+pQobuFGlxX+t1rgiM8JMc4n1AWveQr0W3LE9yPc=";
postFetch = ''
export GOCACHE=$TMPDIR/go-build
export GOPATH=$TMPDIR/go
export GOMODCACHE=$TMPDIR/go/pkg/mod
cd $out
${lib.getExe go} mod init github.com/1pkg/goutline
${lib.getExe go} mod tidy
'';
};

vendorHash = "sha256-RNRvYpbAqKoKPnF1acIX3wbuSvu3k0tppi6ncWd6hIM=";

meta = with lib; {
description = "Go AST Declaration Extractor";
homepage = "https://github.com/1pkg/goutline";
license = licenses.mit;
maintainers = with maintainers; [ wwmoraes ];
};
}