26 stdenv.mkDerivation rec {
30 src = fetchFromGitHub {
33 rev = "rel-${lib.replaceStrings [ "." ] [ "-" ] version}";
34 hash = "sha256-AwdZdOEq9SZ5VzuBllg4U1gdVxZ9IVdqiDrn3QuRdCk=";
63 (lib.cmakeBool "WITH_BERKELEY_DB" true)
64 (lib.cmakeBool "WITH_MEMCACHE" true)
65 (lib.cmakeBool "WITH_TIFF" true)
66 (lib.cmakeBool "WITH_GEOTIFF" true)
67 (lib.cmakeBool "WITH_PCRE2" true)
68 (lib.cmakeFeature "APACHE_MODULE_DIR" "${placeholder "out"}/modules")
71 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-std=c99";
74 description = "Server that implements tile caching to speed up access to WMS layers";
75 homepage = "https://mapserver.org/mapcache/";
76 changelog = "https://www.mapserver.org/development/changelog/mapcache/";
77 license = lib.licenses.mit;
78 maintainers = lib.teams.geospatial.members;
79 platforms = lib.platforms.unix;