31 stdenv.mkDerivation rec {
35 src = fetchFromGitHub {
38 rev = "rel-${lib.replaceStrings [ "." ] [ "-" ] version}";
39 hash = "sha256-tub0Jd1IUkONQ5Mqz8urihbrcFLlOQybLhOvzkcwW54=";
47 ++ lib.optionals withPython [
49 python3.pkgs.setuptools
65 (libxml2.override { enableHttp = true; })
70 ] ++ lib.optional withPython python3;
73 (lib.cmakeBool "WITH_KML" true)
74 (lib.cmakeBool "WITH_SOS" true)
75 (lib.cmakeBool "WITH_RSVG" true)
76 (lib.cmakeBool "WITH_CURL" true)
77 (lib.cmakeBool "WITH_CLIENT_WMS" true)
78 (lib.cmakeBool "WITH_CLIENT_WFS" true)
79 (lib.cmakeBool "WITH_PYTHON" withPython)
81 # RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
82 (lib.cmakeBool "CMAKE_SKIP_BUILD_RPATH" true)
86 description = "Platform for publishing spatial data and interactive mapping applications to the web";
87 homepage = "https://mapserver.org/";
88 changelog = "https://mapserver.org/development/changelog/";
89 license = lib.licenses.mit;
90 maintainers = lib.teams.geospatial.members;
91 platforms = lib.platforms.unix;