Merge pull request #169997 from armeenm/mapserver-python3

mapserver: switch to python3
main
Artturi 2 years ago committed by GitHub
commit c8a723fb01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      pkgs/servers/mapserver/default.nix

@ -1,7 +1,7 @@
{ 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, python2
, withPython ? true, swig, python3
}:
stdenv.mkDerivation rec {
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
cmake
pkg-config
] ++ lib.optional withPython swig;
] ++ lib.optional withPython [ swig python3.pkgs.setuptools ];
buildInputs = [
cairo
@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
proj
protobufc
zlib
] ++ lib.optional withPython python2;
] ++ lib.optional withPython python3;
cmakeFlags = [
"-DWITH_KML=ON"

Loading…
Cancel
Save