From 5b0b83dcc408d4c06a2316b2588ce8d5bc66dd35 Mon Sep 17 00:00:00 2001 From: jolheiser Date: Mon, 31 Jul 2023 14:55:53 -0500 Subject: [PATCH] feat: gomodinit Signed-off-by: jolheiser --- pkgs/gomodinit/default.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pkgs/gomodinit/default.nix diff --git a/pkgs/gomodinit/default.nix b/pkgs/gomodinit/default.nix new file mode 100644 index 0000000..5e13072 --- /dev/null +++ b/pkgs/gomodinit/default.nix @@ -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; + }; +} +