diff options
author | Nikolay Korotkiy <sikmir@disroot.org> | 2024-02-27 17:34:42 +0400 |
---|---|---|
committer | Nikolay Korotkiy <sikmir@disroot.org> | 2024-02-27 17:34:42 +0400 |
commit | 2148188a55c396afbe3fbc58f776be7640b84688 (patch) | |
tree | 364c249ed20eccd95489dba7c895ad4865630b5a /pkgs/by-name/ti | |
parent | 39f80919f35fc48ef93efda9b2a1abfe28c1f978 (diff) |
tippecanoe: migrate to by-name
Diffstat (limited to 'pkgs/by-name/ti')
-rw-r--r-- | pkgs/by-name/ti/tippecanoe/package.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/by-name/ti/tippecanoe/package.nix b/pkgs/by-name/ti/tippecanoe/package.nix new file mode 100644 index 0000000000000..3a949234c65af --- /dev/null +++ b/pkgs/by-name/ti/tippecanoe/package.nix @@ -0,0 +1,36 @@ +{ lib, stdenv, fetchFromGitHub, sqlite, zlib, perl, testers }: + +stdenv.mkDerivation (finalAttrs: { + pname = "tippecanoe"; + version = "2.46.0"; + + src = fetchFromGitHub { + owner = "felt"; + repo = "tippecanoe"; + rev = finalAttrs.version; + hash = "sha256-UsQb90DKK05JByF3rh6kcvSaugEemU2Gg4c/owImNVs="; + }; + + 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; + }; +}) |