2021-09-14 21:27:46 +00:00
|
|
|
{ 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";
|
2022-03-27 05:48:35 +00:00
|
|
|
version = "1.12.1";
|
2021-09-14 21:27:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MapServer";
|
|
|
|
repo = pname;
|
|
|
|
rev = "rel-${lib.replaceStrings [ "." ] [ "-" ] version}";
|
2022-03-27 05:48:35 +00:00
|
|
|
sha256 = "sha256-NuiZMWcmsN5wDCd37Hvj3cazwT3Ea+OknV/YR3urZB0=";
|
2021-09-14 21:27:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|