summary refs log tree commit diff
path: root/pkgs/development/libraries/mapnik/default.nix
diff options
context:
space:
mode:
authorRobert Schütz <nix@dotlambda.de>2022-06-05 21:58:36 +0000
committerJonathan Ringer <jonringer117@gmail.com>2022-06-06 11:46:30 -0700
commita45f138a414e63445747870f54a3be77e9b25c6c (patch)
tree907f8d1b7dc7353aefe4ddbbbfb358c1a5df97cb /pkgs/development/libraries/mapnik/default.nix
parentce67d25d41c0a05fa4c34b73126f367e682b2db3 (diff)
downloadnixpkgs-a45f138a414e63445747870f54a3be77e9b25c6c.tar
nixpkgs-a45f138a414e63445747870f54a3be77e9b25c6c.tar.gz
nixpkgs-a45f138a414e63445747870f54a3be77e9b25c6c.tar.bz2
nixpkgs-a45f138a414e63445747870f54a3be77e9b25c6c.tar.lz
nixpkgs-a45f138a414e63445747870f54a3be77e9b25c6c.tar.xz
nixpkgs-a45f138a414e63445747870f54a3be77e9b25c6c.tar.zst
nixpkgs-a45f138a414e63445747870f54a3be77e9b25c6c.zip
mapnik: unvendor scons
Diffstat (limited to 'pkgs/development/libraries/mapnik/default.nix')
-rw-r--r--pkgs/development/libraries/mapnik/default.nix13
1 files changed, 11 insertions, 2 deletions
diff --git a/pkgs/development/libraries/mapnik/default.nix b/pkgs/development/libraries/mapnik/default.nix
index 14eb3c047e2..13e34bebee6 100644
--- a/pkgs/development/libraries/mapnik/default.nix
+++ b/pkgs/development/libraries/mapnik/default.nix
@@ -1,12 +1,15 @@
 { lib, stdenv, fetchzip
 , boost, cairo, freetype, gdal, harfbuzz, icu, libjpeg, libpng, libtiff
 , libwebp, libxml2, proj, python3, python ? python3, sqlite, zlib
+, sconsPackages
 
 # supply a postgresql package to enable the PostGIS input plugin
 , postgresql ? null
 }:
 
-stdenv.mkDerivation rec {
+let
+  scons = sconsPackages.scons_3_0_1;
+in stdenv.mkDerivation rec {
   pname = "mapnik";
   version = "3.1.0";
 
@@ -16,10 +19,16 @@ stdenv.mkDerivation rec {
     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
   outputs = [ "out" ];
 
-  nativeBuildInputs = [ python3 ];
+  nativeBuildInputs = [ scons ];
 
   buildInputs = [
     boost cairo freetype gdal harfbuzz icu libjpeg libpng libtiff