mbtileserver: 0.7.0 → 0.8.0

This commit is contained in:
Nikolay Korotkiy 2021-12-22 21:09:54 +03:00
parent 459f9fe2be
commit 15dea1cb89
No known key found for this signature in database
GPG key ID: D1DE6D7F693663A5

View file

@ -1,17 +1,23 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "mbtileserver";
version = "0.7.0";
version = "0.8.0";
src = fetchFromGitHub {
owner = "consbio";
repo = pname;
rev = "v${version}";
sha256 = "sha256-QdirExVv7p7Mnhp8EGdTVRlmEiYpzoXVQbtO8aS9Kas=";
sha256 = "sha256-0wSc2DIfK6o3kSiH2sSQcYRR5dHnQbnJC6SX6DwVk1c=";
};
vendorSha256 = "sha256-mUUxUZn8out6WNvKJKHoz+R44RDB0oWJb+57w72+E5w=";
# 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=";
meta = with lib; {
description = "A simple Go-based server for map tiles stored in mbtiles format";