at 22.05-pre 35 lines 1.0 kB view raw
1{ lib, stdenv, fetchFromGitHub, autoreconfHook, apacheHttpd, apr, cairo, iniparser, mapnik }: 2 3stdenv.mkDerivation rec { 4 pname = "mod_tile"; 5 version = "unstable-2017-01-08"; 6 7 src = fetchFromGitHub { 8 owner = "openstreetmap"; 9 repo = "mod_tile"; 10 rev = "e25bfdba1c1f2103c69529f1a30b22a14ce311f1"; 11 sha256 = "12c96avka1dfb9wxqmjd57j30w9h8yx4y4w34kyq6xnf6lwnkcxp"; 12 }; 13 14 nativeBuildInputs = [ autoreconfHook ]; 15 buildInputs = [ apacheHttpd apr cairo iniparser mapnik ]; 16 17 configureFlags = [ 18 "--with-apxs=${apacheHttpd.dev}/bin/apxs" 19 ]; 20 21 installPhase = '' 22 mkdir -p $out/modules 23 make install-mod_tile DESTDIR=$out 24 mv $out${apacheHttpd}/* $out 25 rm -rf $out/nix 26 ''; 27 28 meta = with lib; { 29 homepage = "https://github.com/openstreetmap/mod_tile"; 30 description = "Efficiently render and serve OpenStreetMap tiles using Apache and Mapnik"; 31 license = licenses.gpl2; 32 maintainers = with maintainers; [ jglukasik ]; 33 platforms = platforms.linux; 34 }; 35}