Merge pull request #70365 from jglukasik/mod_tile

apacheHttpdPackages.mod_tile: init at unstable-2017-01-08
This commit is contained in:
Aaron Andersen 2019-11-05 20:45:55 -05:00 committed by GitHub
commit 0cad3f6734
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,35 @@
{ stdenv, fetchFromGitHub, autoreconfHook, apacheHttpd, apr, cairo, iniparser, mapnik }:
stdenv.mkDerivation rec {
pname = "mod_tile";
version = "unstable-2017-01-08";
src = fetchFromGitHub {
owner = "openstreetmap";
repo = "mod_tile";
rev = "e25bfdba1c1f2103c69529f1a30b22a14ce311f1";
sha256 = "12c96avka1dfb9wxqmjd57j30w9h8yx4y4w34kyq6xnf6lwnkcxp";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ apacheHttpd apr cairo iniparser mapnik ];
configureFlags = [
"--with-apxs=${apacheHttpd.dev}/bin/apxs"
];
installPhase = ''
mkdir -p $out/modules
make install-mod_tile DESTDIR=$out
mv $out${apacheHttpd}/* $out
rm -rf $out/nix
'';
meta = with stdenv.lib; {
homepage = "https://github.com/openstreetmap/mod_tile";
description = "Efficiently render and serve OpenStreetMap tiles using Apache and Mapnik";
license = licenses.gpl2;
maintainers = with maintainers; [ jglukasik ];
platforms = platforms.linux;
};
}

View file

@ -14751,6 +14751,8 @@ in
mod_python = callPackage ../servers/http/apache-modules/mod_python { };
mod_tile = callPackage ../servers/http/apache-modules/mod_tile { };
mod_wsgi = self.mod_wsgi2;
mod_wsgi2 = callPackage ../servers/http/apache-modules/mod_wsgi { python = python2; ncurses = null; };
mod_wsgi3 = callPackage ../servers/http/apache-modules/mod_wsgi { python = python3; };