2022-09-14 18:05:37 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, sqlite, zlib, perl, testers }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-14 18:05:37 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "tippecanoe";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "2.19.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-09-14 18:05:37 +00:00
|
|
|
owner = "felt";
|
|
|
|
repo = "tippecanoe";
|
|
|
|
rev = finalAttrs.version;
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-FWdAMIAoj3/+SQLIan++UpmWH1o3v92FsDw//b5RorM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ sqlite zlib ];
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ perl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true;
|
|
|
|
|
2022-09-14 18:05:37 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = finalAttrs.finalPackage;
|
|
|
|
version = "v${finalAttrs.version}";
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Build vector tilesets from large collections of GeoJSON features";
|
2022-09-14 18:05:37 +00:00
|
|
|
homepage = "https://github.com/felt/tippecanoe";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
2022-09-14 18:05:37 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-09-14 18:05:37 +00:00
|
|
|
})
|