diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/geospatial/mapcache/default.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/geospatial/mapcache/default.nix | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/geospatial/mapcache/default.nix b/nixpkgs/pkgs/servers/geospatial/mapcache/default.nix new file mode 100644 index 000000000000..df679d930fa0 --- /dev/null +++ b/nixpkgs/pkgs/servers/geospatial/mapcache/default.nix @@ -0,0 +1,61 @@ +{ 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.14.0"; + + src = fetchFromGitHub { + owner = "MapServer"; + repo = pname; + rev = "rel-${lib.replaceStrings [ "." ] [ "-" ] version}"; + sha256 = "sha256-+QP4xXhP+MNqnhMUtMdtKrcuJ0M2BXWu3mbxXzj5ybc="; + }; + + 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" + ]; + + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-std=c99"; + + 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 = teams.geospatial.members; + platforms = platforms.unix; + }; +} |