mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
35 lines
884 B
Nix
35 lines
884 B
Nix
{ lib, stdenv, fetchFromGitHub, sqlite, zlib, perl, testers }:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "tippecanoe";
|
|
version = "2.18.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "felt";
|
|
repo = "tippecanoe";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-+V6nV2L1lE5QEkZcDMg9WE3iiBuZN/QTMR+XX/IdjmA=";
|
|
};
|
|
|
|
buildInputs = [ sqlite zlib ];
|
|
nativeCheckInputs = [ 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;
|
|
};
|
|
})
|