default.nix (811B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 curl, 7 }: 8 9 stdenv.mkDerivation { 10 pname = "vectiler"; 11 version = "0.1.0-unstable-2021-06-30"; 12 13 src = fetchFromGitHub { 14 owner = "karimnaaji"; 15 repo = "vectiler"; 16 rev = "76e71c852b020fb5b877c0b03dfeb263a632df71"; 17 hash = "sha256-O21XTkKAKRVqc7iItT8MroxM6PtTDNCoEdXvkpnxWus="; 18 fetchSubmodules = true; 19 }; 20 21 nativeBuildInputs = [ cmake ]; 22 23 buildInputs = [ curl ]; 24 25 installPhase = '' 26 install -Dm755 vectiler.out $out/bin/vectiler 27 ''; 28 29 meta = { 30 description = "A vector tile, terrain and city 3d model builder and exporter"; 31 homepage = "http://karim.naaji.fr/vectiler.html"; 32 license = lib.licenses.mit; 33 maintainers = [ lib.maintainers.sikmir ]; 34 platforms = lib.platforms.unix; 35 mainProgram = "vectiler"; 36 }; 37 }