From b8ac79d7ead214f96cc8b642fa7ce085a2ee2043 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 29 Jun 2024 18:00:11 +0200 Subject: porto: init at 0.6.0 --- pkgs/porto/default.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pkgs/porto/default.nix (limited to 'pkgs/porto') diff --git a/pkgs/porto/default.nix b/pkgs/porto/default.nix new file mode 100644 index 0000000..9a93481 --- /dev/null +++ b/pkgs/porto/default.nix @@ -0,0 +1,29 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "porto"; + version = "0.6.0"; + + src = fetchFromGitHub { + owner = "jcchavezs"; + repo = "porto"; + rev = "v${version}"; + hash = "sha256-0Wu5F95f7EaDL7kiJudlq2ioHxXx/sUXqVKwg/n/Cx0="; + }; + + vendorHash = "sha256-doUt43BWXFKYDdl6aHWeMvZEyxh+otHAfA4X+yqBTas="; + subPackages = [ "cmd/porto" ]; + + ldflags = [ "-s" "-w" ]; + + meta = with lib; { + description = "Tool for adding vanity import to Go code"; + homepage = "https://github.com/jcchavezs/porto"; + license = licenses.asl20; + maintainers = with maintainers; [ alanpearce ]; + mainProgram = "porto"; + }; +} -- cgit 1.4.1