nixpkgs/pkgs/servers/mbtileserver/default.nix

31 lines
956 B
Nix
Raw Normal View History

2021-12-22 19:09:54 +01:00
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
2020-09-15 08:41:37 +02:00
buildGoModule rec {
pname = "mbtileserver";
2021-12-22 19:09:54 +01:00
version = "0.8.0";
2020-09-15 08:41:37 +02:00
src = fetchFromGitHub {
owner = "consbio";
repo = pname;
rev = "v${version}";
2021-12-22 19:09:54 +01:00
sha256 = "sha256-0wSc2DIfK6o3kSiH2sSQcYRR5dHnQbnJC6SX6DwVk1c=";
2020-09-15 08:41:37 +02:00
};
2021-12-22 19:09:54 +01:00
# https://github.com/consbio/mbtileserver/issues/130
postPatch = lib.optionalString stdenv.isAarch64 ''
substituteInPlace handlers/tile_test.go \
--replace "Test_CalcScaleResolution" "Skip_CalcScaleResolution"
'';
vendorSha256 = "sha256-36tUTZud0hxH9oZlnKxeK/xzoEzfw3xFMnd/r0srw6U=";
2020-09-15 08:41:37 +02:00
meta = with lib; {
description = "A simple Go-based server for map tiles stored in mbtiles format";
homepage = "https://github.com/consbio/mbtileserver";
2021-05-14 20:28:26 +02:00
changelog = "https://github.com/consbio/mbtileserver/blob/v${version}/CHANGELOG.md";
2020-09-15 08:41:37 +02:00
license = licenses.isc;
maintainers = with maintainers; [ sikmir ];
platforms = platforms.unix;
};
}