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 { lib, stdenv, fetchFromGitHub, cmake, pkg-config
, cairo, curl, fcgi, freetype, fribidi, gdal, geos, giflib, harfbuzz , cairo, curl, fcgi, freetype, fribidi, gdal, geos, giflib, harfbuzz
, libjpeg, libpng, librsvg, libxml2, postgresql, proj, protobufc, zlib , libjpeg, libpng, librsvg, libxml2, postgresql, proj, protobufc, zlib
, withPython ? true, swig, python2 , withPython ? true, swig, python3
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
pkg-config pkg-config
] ++ lib.optional withPython swig; ] ++ lib.optional withPython [ swig python3.pkgs.setuptools ];
buildInputs = [ buildInputs = [
cairo cairo
@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
proj proj
protobufc protobufc
zlib zlib
] ++ lib.optional withPython python2; ] ++ lib.optional withPython python3;
cmakeFlags = [ cmakeFlags = [
"-DWITH_KML=ON" "-DWITH_KML=ON"

Loading…
Cancel
Save