Merge pull request #279791 from Theaninova/add-go-pmtiles

pmtiles: init at 1.12.0

authored by Janik and committed by GitHub 75dd71ef 60e27c95

+37
+9
maintainers/maintainer-list.nix
··· 18417 18417 fingerprint = "D2A2 F0A1 E7A8 5E6F B711 DEE5 63A4 4817 A52E AB7B"; 18418 18418 }]; 18419 18419 }; 18420 + theaninova = { 18421 + name = "Thea Schöbl"; 18422 + email = "dev@theaninova.de"; 18423 + github = "Theaninova"; 18424 + githubId = 19289296; 18425 + keys = [{ 18426 + fingerprint = "6C9E EFC5 1AE0 0131 78DE B9C8 68FF FB1E C187 88CA"; 18427 + }]; 18428 + }; 18420 18429 the-argus = { 18421 18430 email = "i.mcfarlane2002@gmail.com"; 18422 18431 github = "the-argus";
+28
pkgs/by-name/pm/pmtiles/package.nix
··· 1 + { lib, buildGoModule, fetchFromGitHub }: 2 + buildGoModule rec { 3 + pname = "pmtiles"; 4 + version = "1.12.0"; 5 + 6 + src = fetchFromGitHub { 7 + owner = "protomaps"; 8 + repo = "go-pmtiles"; 9 + rev = "v${version}"; 10 + hash = "sha256-8gd6p4AAevtRkb/IZAXfxz8lioySf3s8lT6moi1IoWc="; 11 + }; 12 + 13 + vendorHash = "sha256-gLFwGEUeH41bObG32MZznF7clct3h2GEvdZ2/KIiVb4="; 14 + 15 + ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.commit=v${version}" ]; 16 + 17 + postInstall = '' 18 + mv $out/bin/go-pmtiles $out/bin/pmtiles 19 + ''; 20 + 21 + meta = with lib; { 22 + description = "The single-file utility for creating and working with PMTiles archives"; 23 + homepage = "https://github.com/protomaps/go-pmtiles"; 24 + license = licenses.bsd3; 25 + maintainers = [ maintainers.theaninova ]; 26 + mainProgram = "pmtiles"; 27 + }; 28 + }