2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-07-18 16:06:22 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
2020-10-27 00:29:36 +00:00
|
|
|
, openscenegraph
|
2020-07-18 16:06:22 +00:00
|
|
|
, curl
|
|
|
|
, gdal
|
|
|
|
, hdf5-cpp
|
|
|
|
, LASzip
|
2022-10-21 18:38:19 +00:00
|
|
|
, enableE57 ? lib.meta.availableOn stdenv.hostPlatform libe57format
|
2020-07-18 16:06:22 +00:00
|
|
|
, libe57format
|
|
|
|
, libgeotiff
|
2022-12-28 21:21:41 +00:00
|
|
|
, libtiff
|
2020-07-18 16:06:22 +00:00
|
|
|
, libxml2
|
|
|
|
, postgresql
|
|
|
|
, tiledb
|
|
|
|
, xercesc
|
|
|
|
, zlib
|
|
|
|
, zstd
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pdal";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "2.5.6";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PDAL";
|
|
|
|
repo = "PDAL";
|
|
|
|
rev = version;
|
2023-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-JKwa89c05EfZ/FxOkj8lYmw0o2EgSqafRDIV2mTpZ5E=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2020-10-27 00:29:36 +00:00
|
|
|
openscenegraph
|
2020-07-18 16:06:22 +00:00
|
|
|
curl
|
|
|
|
gdal
|
|
|
|
hdf5-cpp
|
|
|
|
LASzip
|
|
|
|
libgeotiff
|
2022-12-28 21:21:41 +00:00
|
|
|
libtiff
|
2020-07-18 16:06:22 +00:00
|
|
|
libxml2
|
|
|
|
postgresql
|
|
|
|
tiledb
|
|
|
|
xercesc
|
|
|
|
zlib
|
|
|
|
zstd
|
2022-10-21 18:38:19 +00:00
|
|
|
] ++ lib.optionals enableE57 [
|
|
|
|
libe57format
|
2020-07-18 16:06:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2022-10-21 18:38:19 +00:00
|
|
|
"-DBUILD_PLUGIN_E57=${if enableE57 then "ON" else "OFF"}"
|
2020-07-18 16:06:22 +00:00
|
|
|
"-DBUILD_PLUGIN_HDF=ON"
|
|
|
|
"-DBUILD_PLUGIN_PGPOINTCLOUD=ON"
|
|
|
|
"-DBUILD_PLUGIN_TILEDB=ON"
|
|
|
|
|
|
|
|
# Plugins can probably not be made work easily:
|
|
|
|
"-DBUILD_PLUGIN_CPD=OFF"
|
|
|
|
"-DBUILD_PLUGIN_FBX=OFF" # Autodesk FBX SDK is gratis+proprietary; not packaged in nixpkgs
|
|
|
|
"-DBUILD_PLUGIN_GEOWAVE=OFF"
|
|
|
|
"-DBUILD_PLUGIN_I3S=OFF"
|
|
|
|
"-DBUILD_PLUGIN_ICEBRIDGE=OFF"
|
|
|
|
"-DBUILD_PLUGIN_MATLAB=OFF"
|
|
|
|
"-DBUILD_PLUGIN_MBIO=OFF"
|
|
|
|
"-DBUILD_PLUGIN_MRSID=OFF"
|
|
|
|
"-DBUILD_PLUGIN_NITF=OFF"
|
|
|
|
"-DBUILD_PLUGIN_OCI=OFF"
|
|
|
|
"-DBUILD_PLUGIN_RDBLIB=OFF" # Riegl rdblib is proprietary; not packaged in nixpkgs
|
|
|
|
"-DBUILD_PLUGIN_RIVLIB=OFF"
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "PDAL is Point Data Abstraction Library. GDAL for point cloud data";
|
2020-07-18 16:06:22 +00:00
|
|
|
homepage = "https://pdal.io";
|
|
|
|
license = licenses.bsd3;
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = teams.geospatial.members;
|
2020-07-18 16:06:22 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|