Skip to content

Commit

Permalink
gdal 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
onny committed Oct 22, 2024
1 parent 73e8956 commit ab07f38
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pkgs/development/libraries/gdal/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ lib
, gcc11Stdenv
, stdenv
, callPackage
, fetchFromGitHub
Expand Down Expand Up @@ -77,16 +78,20 @@
, zlib
, zstd
}:

let
stdenv = gcc11Stdenv;
in
stdenv.mkDerivation (finalAttrs: {
pname = "gdal" + lib.optionalString useMinimalFeatures "-minimal";
version = "3.9.2";
version = "3.8.0";

stdenv = gcc11Stdenv;

src = fetchFromGitHub {
owner = "OSGeo";
repo = "gdal";
rev = "v${finalAttrs.version}";
hash = "sha256-BXnpNfi9tUd6nnwYdstuOfGsFVif8kkmkW97X1UAgt8=";
hash = "sha256-Yu4cXSWSdh9HH/a5LA90/K3RRH1oQA9QMMa8heGLcAw=";
};

patches = [
Expand All @@ -112,6 +117,7 @@ stdenv.mkDerivation (finalAttrs: {
] ++ lib.optionals useJava [ ant jdk ];

cmakeFlags = [
"-DCMAKE_CXX_FLAGS=-fpermissive"
"-DGDAL_USE_INTERNAL_LIBS=OFF"
"-DGEOTIFF_INCLUDE_DIR=${lib.getDev libgeotiff}/include"
"-DGEOTIFF_LIBRARY_RELEASE=${lib.getLib libgeotiff}/lib/libgeotiff${stdenv.hostPlatform.extensions.sharedLibrary}"
Expand Down

0 comments on commit ab07f38

Please sign in to comment.