summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJoseph Lukasik <joseph@jgl.me>2019-10-04 03:47:38 +0000
committerjoseph gl <joseph@jgl.me>2019-11-01 22:52:14 -0700
commitbabd3f774738c07aa399699677a1f1e07a1f78e4 (patch)
tree49b747d33660891ab3e45543060594e38173cee1 /pkgs
parent0137b08bd1070a22564bf67bb7a678d2a6a60452 (diff)
downloadnixpkgs-babd3f774738c07aa399699677a1f1e07a1f78e4.tar
nixpkgs-babd3f774738c07aa399699677a1f1e07a1f78e4.tar.gz
nixpkgs-babd3f774738c07aa399699677a1f1e07a1f78e4.tar.bz2
nixpkgs-babd3f774738c07aa399699677a1f1e07a1f78e4.tar.lz
nixpkgs-babd3f774738c07aa399699677a1f1e07a1f78e4.tar.xz
nixpkgs-babd3f774738c07aa399699677a1f1e07a1f78e4.tar.zst
nixpkgs-babd3f774738c07aa399699677a1f1e07a1f78e4.zip
apacheHttpdPackage.mod_tile: init at unstable-2017-01-08
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/servers/http/apache-modules/mod_tile/default.nix35
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/servers/http/apache-modules/mod_tile/default.nix b/pkgs/servers/http/apache-modules/mod_tile/default.nix
new file mode 100644
index 00000000000..397e0dfe0bb
--- /dev/null
+++ b/pkgs/servers/http/apache-modules/mod_tile/default.nix
@@ -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;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index fb906ed884a..0e9cb62caba 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -14552,6 +14552,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; };