mapserver: init at 7.6.4

This commit is contained in:
Nikolay Korotkiy 2021-09-14 23:04:18 +03:00
parent 9c566248df
commit 65cec7a97e
No known key found for this signature in database
GPG key ID: D1DE6D7F693663A5
2 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,60 @@
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
, cairo, curl, fcgi, freetype, fribidi, gdal, geos, giflib, harfbuzz
, libjpeg, libpng, librsvg, libxml2, postgresql, proj, protobufc, zlib
, withPython ? true, swig, python
}:
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
] ++ lib.optional withPython python;
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;
};
}

View file

@ -6630,6 +6630,8 @@ with pkgs;
makebootfat = callPackage ../tools/misc/makebootfat { };
mapserver = callPackage ../servers/mapserver { };
martin = callPackage ../servers/martin {
inherit (darwin.apple_sdk.frameworks) Security;
};