diff options
author | Nikolay Korotkiy <sikmir@gmail.com> | 2021-09-15 00:27:46 +0300 |
---|---|---|
committer | Nikolay Korotkiy <sikmir@gmail.com> | 2021-09-15 00:27:46 +0300 |
commit | 937852df5226e3f2ebd7d0455be277fcbf8b87dd (patch) | |
tree | 8ba05864946326c8e22b3936cb06d0912d5419f3 /pkgs/servers/mapcache/default.nix | |
parent | 65cec7a97ee26db10c0e302b937a2d47ed827091 (diff) |
mapcache: init at 1.10.0
Diffstat (limited to 'pkgs/servers/mapcache/default.nix')
-rw-r--r-- | pkgs/servers/mapcache/default.nix | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/pkgs/servers/mapcache/default.nix b/pkgs/servers/mapcache/default.nix new file mode 100644 index 0000000000000..ff502d2032857 --- /dev/null +++ b/pkgs/servers/mapcache/default.nix @@ -0,0 +1,59 @@ +{ lib, stdenv, fetchFromGitHub, cmake, pkg-config +, apacheHttpd, apr, aprutil, curl, db, fcgi, gdal, geos +, libgeotiff, libjpeg, libpng, libtiff, pcre, pixman, proj, sqlite, zlib +}: + +stdenv.mkDerivation rec { + pname = "mapcache"; + version = "1.10.0"; + + src = fetchFromGitHub { + owner = "MapServer"; + repo = pname; + rev = "rel-${lib.replaceStrings [ "." ] [ "-" ] version}"; + sha256 = "sha256-HrvcJAf0a6tu8AKKuW5TaCtqPMgzH21fGMBxIfUzdgY="; + }; + + nativeBuildInputs = [ + cmake + pkg-config + ]; + + buildInputs = [ + apacheHttpd + apr + aprutil + curl + db + fcgi + gdal + geos + libgeotiff + libjpeg + libpng + libtiff + pcre + pixman + proj + sqlite + zlib + ]; + + cmakeFlags = [ + "-DWITH_BERKELEY_DB=ON" + "-DWITH_MEMCACHE=ON" + "-DWITH_TIFF=ON" + "-DWITH_GEOTIFF=ON" + "-DWITH_PCRE=ON" + "-DAPACHE_MODULE_DIR=${placeholder "out"}/modules" + ]; + + meta = with lib; { + description = "A server that implements tile caching to speed up access to WMS layers"; + homepage = "https://mapserver.org/mapcache/"; + changelog = "https://www.mapserver.org/development/changelog/mapcache/"; + license = licenses.mit; + maintainers = with maintainers; [ sikmir ]; + platforms = platforms.unix; + }; +} |