mapnik: unvendor scons
This commit is contained in:
parent
ce67d25d41
commit
a45f138a41
|
@ -1,12 +1,15 @@
|
||||||
{ lib, stdenv, fetchzip
|
{ lib, stdenv, fetchzip
|
||||||
, boost, cairo, freetype, gdal, harfbuzz, icu, libjpeg, libpng, libtiff
|
, boost, cairo, freetype, gdal, harfbuzz, icu, libjpeg, libpng, libtiff
|
||||||
, libwebp, libxml2, proj, python3, python ? python3, sqlite, zlib
|
, libwebp, libxml2, proj, python3, python ? python3, sqlite, zlib
|
||||||
|
, sconsPackages
|
||||||
|
|
||||||
# supply a postgresql package to enable the PostGIS input plugin
|
# supply a postgresql package to enable the PostGIS input plugin
|
||||||
, postgresql ? null
|
, postgresql ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
|
scons = sconsPackages.scons_3_0_1;
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
pname = "mapnik";
|
pname = "mapnik";
|
||||||
version = "3.1.0";
|
version = "3.1.0";
|
||||||
|
|
||||||
|
@ -16,10 +19,16 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "sha256-qqPqN4vs3ZsqKgnx21yQhX8OzHca/0O+3mvQ/vnC5EY=";
|
sha256 = "sha256-qqPqN4vs3ZsqKgnx21yQhX8OzHca/0O+3mvQ/vnC5EY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace configure \
|
||||||
|
--replace '$PYTHON scons/scons.py' ${scons}/bin/scons
|
||||||
|
rm -r scons
|
||||||
|
'';
|
||||||
|
|
||||||
# a distinct dev output makes python-mapnik fail
|
# a distinct dev output makes python-mapnik fail
|
||||||
outputs = [ "out" ];
|
outputs = [ "out" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ python3 ];
|
nativeBuildInputs = [ scons ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
boost cairo freetype gdal harfbuzz icu libjpeg libpng libtiff
|
boost cairo freetype gdal harfbuzz icu libjpeg libpng libtiff
|
||||||
|
|
Loading…
Reference in a new issue