depot/third_party/nixpkgs/pkgs/applications/misc/tippecanoe/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

34 lines
877 B
Nix

{ lib, stdenv, fetchFromGitHub, sqlite, zlib, perl, testers }:
stdenv.mkDerivation (finalAttrs: {
pname = "tippecanoe";
version = "2.9.1";
src = fetchFromGitHub {
owner = "felt";
repo = "tippecanoe";
rev = finalAttrs.version;
hash = "sha256-DNIkQwJUeBdVdx06NM0KMWpTTwtMyBfKc/PwGiK4wvQ=";
};
buildInputs = [ sqlite zlib ];
checkInputs = [ perl ];
makeFlags = [ "PREFIX=$(out)" ];
enableParallelBuilding = true;
doCheck = true;
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;
};
})