mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
38 lines
964 B
Nix
38 lines
964 B
Nix
{ lib, stdenv, fetchFromGitHub, sqlite, zlib, perl, testers }:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "tippecanoe";
|
|
version = "2.64.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "felt";
|
|
repo = "tippecanoe";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-5HMyqUdoNFwZccXlsFms4C+jyfMVLCiCcFapC6y7e+M=";
|
|
};
|
|
|
|
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 = teams.geospatial.members;
|
|
platforms = platforms.unix;
|
|
mainProgram = "tippecanoe";
|
|
};
|
|
})
|