-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a3b55b
commit 250f6d5
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; | ||
}; | ||
} |