From 250f6d5bbd5195e27c0746a4b426d381381933ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Tue, 9 Jan 2024 11:25:46 +0100 Subject: [PATCH] pmtiles: init at 1.12.0 --- pkgs/by-name/pm/pmtiles/package.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkgs/by-name/pm/pmtiles/package.nix diff --git a/pkgs/by-name/pm/pmtiles/package.nix b/pkgs/by-name/pm/pmtiles/package.nix new file mode 100644 index 000000000000..ffb24053f090 --- /dev/null +++ b/pkgs/by-name/pm/pmtiles/package.nix @@ -0,0 +1,28 @@ +{ lib, buildGoModule, fetchFromGitHub }: +buildGoModule rec { + pname = "pmtiles"; + version = "1.12.0"; + + src = fetchFromGitHub { + owner = "protomaps"; + repo = "go-pmtiles"; + rev = "v${version}"; + hash = "sha256-8gd6p4AAevtRkb/IZAXfxz8lioySf3s8lT6moi1IoWc="; + }; + + vendorHash = "sha256-gLFwGEUeH41bObG32MZznF7clct3h2GEvdZ2/KIiVb4="; + + ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.commit=v${version}" ]; + + postInstall = '' + mv $out/bin/go-pmtiles $out/bin/pmtiles + ''; + + meta = with lib; { + description = "The single-file utility for creating and working with PMTiles archives"; + homepage = "https://github.com/protomaps/go-pmtiles"; + license = licenses.bsd3; + maintainers = [ maintainers.theaninova ]; + mainProgram = "pmtiles"; + }; +}