default.nix (620B)
1 { lib, buildGoModule, fetchFromGitHub }: 2 3 buildGoModule rec { 4 pname = "go-pmtiles"; 5 version = "1.11.2"; 6 7 src = fetchFromGitHub { 8 owner = "protomaps"; 9 repo = "go-pmtiles"; 10 rev = "v${version}"; 11 hash = "sha256-wKfBL5L77wbNk1YC87G7pAPYb+l4vSG1sB3TI9Qe9vI="; 12 }; 13 14 vendorHash = "sha256-gLFwGEUeH41bObG32MZznF7clct3h2GEvdZ2/KIiVb4="; 15 16 ldflags = [ "-X main.version=${version}" ]; 17 18 meta = with lib; { 19 description = "Read/write library & concurrent caching proxy for PMTiles archives"; 20 inherit (src.meta) homepage; 21 license = licenses.bsd3; 22 maintainers = [ maintainers.sikmir ]; 23 }; 24 }