summary refs log tree commit diff
path: root/pkgs/development/libraries/gdal
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2016-10-15 18:03:42 -0400
committerDmitry Kalinkin <dmitry.kalinkin@gmail.com>2016-10-17 11:23:14 -0400
commit468a5bc22458f7aeb3ee7b887f29a8e8799c6337 (patch)
treee4338b754375da14aa500da4499213d375ecee70 /pkgs/development/libraries/gdal
parente4574a54d4f712e2f7f98ee8c442e77c645b5325 (diff)
downloadnixpkgs-468a5bc22458f7aeb3ee7b887f29a8e8799c6337.tar
nixpkgs-468a5bc22458f7aeb3ee7b887f29a8e8799c6337.tar.gz
nixpkgs-468a5bc22458f7aeb3ee7b887f29a8e8799c6337.tar.bz2
nixpkgs-468a5bc22458f7aeb3ee7b887f29a8e8799c6337.tar.lz
nixpkgs-468a5bc22458f7aeb3ee7b887f29a8e8799c6337.tar.xz
nixpkgs-468a5bc22458f7aeb3ee7b887f29a8e8799c6337.tar.zst
nixpkgs-468a5bc22458f7aeb3ee7b887f29a8e8799c6337.zip
dgal: fix
Diffstat (limited to 'pkgs/development/libraries/gdal')
-rw-r--r--pkgs/development/libraries/gdal/default.nix11
1 files changed, 2 insertions, 9 deletions
diff --git a/pkgs/development/libraries/gdal/default.nix b/pkgs/development/libraries/gdal/default.nix
index d710c7357bc..ce3e0f61972 100644
--- a/pkgs/development/libraries/gdal/default.nix
+++ b/pkgs/development/libraries/gdal/default.nix
@@ -39,16 +39,9 @@ composableDerivation.composableDerivation {} (fixed: rec {
     (if netcdfSupport then "--with-netcdf=${netcdf}" else "")
   ];
 
-  # Prevent this:
-  #
-  #   Checking .pth file support in /nix/store/xkrmb8xnvqxzjwsdmasqmsdh1a5y2y99-gdal-1.11.2/lib/python2.7/site-packages/
-  #   /nix/store/pbi1lgank10fy0xpjckbdpgacqw34dsz-python-2.7.9/bin/python -E -c pass
-  #   TEST FAILED: /nix/store/xkrmb8xnvqxzjwsdmasqmsdh1a5y2y99-gdal-1.11.2/lib/python2.7/site-packages/ does NOT support .pth files
-  #   error: bad install directory or PYTHONPATH
   preBuild = ''
-    pythonInstallDir=$out/lib/${pythonPackages.python.libPrefix}/site-packages
-    mkdir -p $pythonInstallDir
-    export PYTHONPATH=''${PYTHONPATH:+''${PYTHONPATH}:}$pythonInstallDir
+    substituteInPlace swig/python/GNUmakefile \
+      --replace "ifeq (\$(STD_UNIX_LAYOUT),\"TRUE\")" "ifeq (1,1)"
   '';
 
   postInstall = ''