nixpkgs/pkgs/applications/misc/tippecanoe/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
877 B
Nix
Raw Normal View History

2022-09-12 20:08:33 +02:00
{ lib, stdenv, fetchFromGitHub, sqlite, zlib, perl, testers }:
2019-09-08 12:10:36 +02:00
2022-09-12 20:08:33 +02:00
stdenv.mkDerivation (finalAttrs: {
2019-09-08 12:10:36 +02:00
pname = "tippecanoe";
2022-09-12 20:08:33 +02:00
version = "2.6.0";
2019-09-08 12:10:36 +02:00
src = fetchFromGitHub {
2022-09-12 20:08:33 +02:00
owner = "felt";
repo = "tippecanoe";
rev = finalAttrs.version;
hash = "sha256-58/FS5nxzK5JSc0D1KXooSjrKMdOnpF7dvwAK9rUZZk=";
2019-09-08 12:10:36 +02:00
};
buildInputs = [ sqlite zlib ];
checkInputs = [ perl ];
makeFlags = [ "PREFIX=$(out)" ];
enableParallelBuilding = true;
doCheck = true;
2022-09-12 20:08:33 +02:00
passthru.tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
version = "v${finalAttrs.version}";
};
meta = with lib; {
2019-09-08 12:10:36 +02:00
description = "Build vector tilesets from large collections of GeoJSON features";
2022-09-12 20:08:33 +02:00
homepage = "https://github.com/felt/tippecanoe";
2019-09-08 12:10:36 +02:00
license = licenses.bsd2;
maintainers = with maintainers; [ sikmir ];
2022-09-12 20:08:33 +02:00
platforms = platforms.unix;
2019-09-08 12:10:36 +02:00
};
2022-09-12 20:08:33 +02:00
})