libLAS: remove never-used and broken GDAL support

GDAL support was never compiled in because "WITH_GDAL=ON" was never
defined in cmakeFlags. Defining that breaks compilation because libLAS
is thorougly incompatible with modern GDAL.

Remove GDAL as an input entirely to shrink dependency graph and tidy up.
This commit is contained in:
Thomas Watson 2023-10-17 17:03:49 -05:00
parent 019abf2a7d
commit 175331f0f3

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, fetchpatch, boost, cmake, gdal, libgeotiff, libtiff, LASzip2, fixDarwinDylibNames }:
{ lib, stdenv, fetchurl, fetchpatch, boost, cmake, libgeotiff, libtiff, LASzip2, fixDarwinDylibNames }:
stdenv.mkDerivation rec {
pname = "libLAS";
@ -28,10 +28,9 @@ stdenv.mkDerivation rec {
];
nativeBuildInputs = [ cmake ] ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
buildInputs = [ boost gdal libgeotiff libtiff LASzip2 ];
buildInputs = [ boost libgeotiff libtiff LASzip2 ];
cmakeFlags = [
"-DGDAL_CONFIG=${gdal}/bin/gdal-config"
"-DWITH_LASZIP=ON"
# libLAS is currently not compatible with LASzip 3,
# see https://github.com/libLAS/libLAS/issues/144.