blob: d060c3fe5a1273abf486a6c00ac191a711ae0204 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "pmtiles";
version = "1.27.2";
src = fetchFromGitHub {
owner = "protomaps";
repo = "go-pmtiles";
tag = "v${version}";
hash = "sha256-yOQrwJZUUdknEB+/I/BeQjtQvQ9HoKOJOYL4TM4vpc8=";
};
vendorHash = "sha256-kfEzpaFMf0W8Ygtl40LBy3AZQSL+9Uo+n2x9OTOavqk=";
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
"-X main.commit=v${version}"
];
postInstall = ''
mv $out/bin/go-pmtiles $out/bin/pmtiles
'';
meta = {
description = "Single-file utility for creating and working with PMTiles archives";
homepage = "https://github.com/protomaps/go-pmtiles";
license = lib.licenses.bsd3;
maintainers = lib.teams.geospatial.members ++ (with lib.maintainers; [ theaninova ]);
mainProgram = "pmtiles";
};
}
|