about summary refs log tree commit diff
path: root/pkgs/applications/gis/openorienteering-mapper
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2019-07-11 05:00:14 -0700
committerJonathan Ringer <jonringer117@gmail.com>2019-07-14 09:59:27 -0700
commitd9504f9aabccb6827c1f6bd9f7c697caf14c6323 (patch)
treea4eae7f73cda9423209e0a47598ca7f2c98f9055 /pkgs/applications/gis/openorienteering-mapper
parentf34face72159d37bb3e65cca6caf84e93cef469f (diff)
downloadnixlib-d9504f9aabccb6827c1f6bd9f7c697caf14c6323.tar
nixlib-d9504f9aabccb6827c1f6bd9f7c697caf14c6323.tar.gz
nixlib-d9504f9aabccb6827c1f6bd9f7c697caf14c6323.tar.bz2
nixlib-d9504f9aabccb6827c1f6bd9f7c697caf14c6323.tar.lz
nixlib-d9504f9aabccb6827c1f6bd9f7c697caf14c6323.tar.xz
nixlib-d9504f9aabccb6827c1f6bd9f7c697caf14c6323.tar.zst
nixlib-d9504f9aabccb6827c1f6bd9f7c697caf14c6323.zip
openorienteering-mapper: fix build
Diffstat (limited to 'pkgs/applications/gis/openorienteering-mapper')
-rw-r--r--pkgs/applications/gis/openorienteering-mapper/default.nix5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgs/applications/gis/openorienteering-mapper/default.nix b/pkgs/applications/gis/openorienteering-mapper/default.nix
index a5a0492ab876..b4d3e9f93a47 100644
--- a/pkgs/applications/gis/openorienteering-mapper/default.nix
+++ b/pkgs/applications/gis/openorienteering-mapper/default.nix
@@ -20,9 +20,6 @@ stdenv.mkDerivation rec {
 
   cmakeFlags =
     [
-    # Required by the build to be specified
-    "-DPROJ4_ROOT=${proj}"
-
     # Building the manual and bundling licenses fails
     "-DLICENSING_PROVIDER:BOOL=OFF"
     "-DMapper_MANUAL_QTHELP:BOOL=OFF"
@@ -43,6 +40,8 @@ stdenv.mkDerivation rec {
     "-DMapper_PACKAGE_GDAL=0"
     ]);
 
+  # Needs to be available when proj_api.h gets evaluted by CPP
+  NIX_CFLAGS_COMPILE = [ "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H" ];
 
   postInstall =
     stdenv.lib.optionalString stdenv.isDarwin ''