Skip to content

Commit

Permalink
goutline: init at 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmoraes committed Aug 12, 2024
1 parent 0d2ff89 commit e95d2e5
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
8 changes: 8 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22222,6 +22222,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,
lib,
pkgs,
}:

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

src = fetchFromGitHub {
owner = "1pkg";
repo = pname;
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
${pkgs.go}/bin/go mod init github.com/1pkg/goutline
${pkgs.go}/bin/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 ];
};
}

0 comments on commit e95d2e5

Please sign in to comment.