1
0
Fork 0

feat: gomodinit

Signed-off-by: jolheiser <john.olheiser@gmail.com>
main
jolheiser 2023-07-31 14:55:53 -05:00
parent b2b3c433bd
commit 5b0b83dcc4
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
{ buildGoModule, fetchFromGitea, lib, ... }:
buildGoModule rec {
pname = "gomodinit";
version = "0.1.1";
src = fetchFromGitea {
domain = "git.jojodev.com";
owner = "jolheiser";
repo = "gomodinit";
rev = "v${version}";
sha256 = "sha256-+9HrNqJwOcU0IYEFUHA6ShLATh6qFG/V9wIpcX8E6Cg=";
};
vendorSha256 = "sha256-7RMTRFHYgzQD7K5JDdjV7ABg6BpCZbQXS9gSRlm27X8=";
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
meta = with lib; {
description = "go mod init";
homepage = "https://git.jojodev.com/jolheiser/gomodinit";
license = licenses.mit;
};
}