From ee83760a335382ca9b81aac8ecf399d8e93a2d63 Mon Sep 17 00:00:00 2001 From: Moraxyc Date: Tue, 29 Oct 2024 02:08:14 +0800 Subject: [PATCH] mmdbinspect: init at 0.2.0 --- pkgs/by-name/mm/mmdbinspect/package.nix | 37 +++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pkgs/by-name/mm/mmdbinspect/package.nix diff --git a/pkgs/by-name/mm/mmdbinspect/package.nix b/pkgs/by-name/mm/mmdbinspect/package.nix new file mode 100644 index 000000000000..ca0c32ad758d --- /dev/null +++ b/pkgs/by-name/mm/mmdbinspect/package.nix @@ -0,0 +1,37 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: + +buildGoModule rec { + pname = "mmdbinspect"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "maxmind"; + repo = "mmdbinspect"; + rev = "refs/tags/v${version}"; + hash = "sha256-PYn+NgJDZBP+9nIU0kxg9KYT0EV35omagspcsCpa9DM="; + fetchSubmodules = true; + }; + + vendorHash = "sha256-HNgofsfMsqXttnrNDIPgLHag+2hqQTREomcesWldpMo="; + + ldflags = [ + "-s" + "-w" + ]; + + meta = { + description = "Look up records for one or more IPs/networks in one or more .mmdb databases"; + homepage = "https://github.com/maxmind/mmdbinspect"; + changelog = "https://github.com/maxmind/mmdbinspect/blob/${src.rev}/CHANGELOG.md"; + license = with lib.licenses; [ + asl20 + mit + ]; + maintainers = with lib.maintainers; [ moraxyc ]; + mainProgram = "mmdbinspect"; + }; +}