1 { lib, stdenv, fetchFromGitHub, cmake, pkg-config
2 , cairo, curl, fcgi, freetype, fribidi, gdal, geos, giflib, harfbuzz
3 , libjpeg, libpng, librsvg, libxml2, postgresql, proj, protobufc, zlib
4 , withPython ? true, swig, python3
7 stdenv.mkDerivation rec {
11 src = fetchFromGitHub {
14 rev = "rel-${lib.replaceStrings [ "." ] [ "-" ] version}";
15 sha256 = "sha256-fAf4kOe/6bQW0i46+EZbD/6iWI2Bjkn2no6XeR/+mg4=";
19 # drop this patch for version 8.0.2
20 ./fix-build-w-libxml2-12.patch
26 ] ++ lib.optionals withPython [ swig python3.pkgs.setuptools ];
46 ] ++ lib.optional withPython python3;
53 "-DWITH_CLIENT_WMS=ON"
54 "-DWITH_CLIENT_WFS=ON"
56 # RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
57 "-DCMAKE_SKIP_BUILD_RPATH=ON"
58 ] ++ lib.optional withPython "-DWITH_PYTHON=ON";
61 description = "Platform for publishing spatial data and interactive mapping applications to the web";
62 homepage = "https://mapserver.org/";
63 changelog = "https://mapserver.org/development/changelog/";
64 license = licenses.mit;
65 maintainers = teams.geospatial.members;
66 platforms = platforms.unix;