2021-09-14 22:04:18 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
|
|
|
, cairo, curl, fcgi, freetype, fribidi, gdal, geos, giflib, harfbuzz
|
|
|
|
, libjpeg, libpng, librsvg, libxml2, postgresql, proj, protobufc, zlib
|
2022-01-12 00:40:02 +01:00
|
|
|
, withPython ? true, swig, python2
|
2021-09-14 22:04:18 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mapserver";
|
|
|
|
version = "7.6.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MapServer";
|
|
|
|
repo = "MapServer";
|
|
|
|
rev = "rel-${lib.replaceStrings [ "." ] [ "-" ] version}";
|
|
|
|
sha256 = "sha256-NMo/7CtWYIP1oPKki09oDWLCbj2vPk3xCU4rkHq8YKY=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
] ++ lib.optional withPython swig;
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
curl
|
|
|
|
fcgi
|
|
|
|
freetype
|
|
|
|
fribidi
|
|
|
|
gdal
|
|
|
|
geos
|
|
|
|
giflib
|
|
|
|
harfbuzz
|
|
|
|
libjpeg
|
|
|
|
libpng
|
|
|
|
librsvg
|
|
|
|
libxml2
|
|
|
|
postgresql
|
|
|
|
proj
|
|
|
|
protobufc
|
|
|
|
zlib
|
2022-01-12 00:40:02 +01:00
|
|
|
] ++ lib.optional withPython python2;
|
2021-09-14 22:04:18 +02:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DWITH_KML=ON"
|
|
|
|
"-DWITH_SOS=ON"
|
|
|
|
"-DWITH_RSVG=ON"
|
|
|
|
"-DWITH_CURL=ON"
|
|
|
|
"-DWITH_CLIENT_WMS=ON"
|
|
|
|
"-DWITH_CLIENT_WFS=ON"
|
|
|
|
] ++ lib.optional withPython "-DWITH_PYTHON=ON";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Platform for publishing spatial data and interactive mapping applications to the web";
|
|
|
|
homepage = "https://mapserver.org/";
|
|
|
|
changelog = "https://mapserver.org/development/changelog/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|