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 Sep 15, 2024
1 parent bbd6b5d commit de66848
Showing 1 changed file with 35 additions and 0 deletions.
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 ];
};
}

0 comments on commit de66848

Please sign in to comment.