nixpkgs/pkgs/applications/misc/tippecanoe/default.nix
2023-11-06 21:32:16 +04:00

37 lines
936 B
Nix

{ lib, stdenv, fetchFromGitHub, sqlite, zlib, perl, testers }:
stdenv.mkDerivation (finalAttrs: {
pname = "tippecanoe";
version = "2.35.0";
src = fetchFromGitHub {
owner = "felt";
repo = "tippecanoe";
rev = finalAttrs.version;
hash = "sha256-l19p/Ql1gaNJpmDH46jwLgUUmJ5YTYRQi6DdayAd84Q=";
};
buildInputs = [ sqlite zlib ];
nativeCheckInputs = [ perl ];
makeFlags = [ "PREFIX=$(out)" ];
enableParallelBuilding = true;
# https://github.com/felt/tippecanoe/issues/148
doCheck = false;
passthru.tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
version = "v${finalAttrs.version}";
};
meta = with lib; {
description = "Build vector tilesets from large collections of GeoJSON features";
homepage = "https://github.com/felt/tippecanoe";
license = licenses.bsd2;
maintainers = with maintainers; [ sikmir ];
platforms = platforms.unix;
};
})