2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2020-06-25 20:02:01 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
2020-10-23 01:38:11 +01:00
|
|
|
, openscenegraph
|
2020-06-25 20:02:01 +01:00
|
|
|
, curl
|
|
|
|
, gdal
|
|
|
|
, hdf5-cpp
|
|
|
|
, LASzip
|
|
|
|
, libe57format
|
|
|
|
, libgeotiff
|
|
|
|
, libxml2
|
|
|
|
, postgresql
|
|
|
|
, tiledb
|
|
|
|
, xercesc
|
|
|
|
, zlib
|
|
|
|
, zstd
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pdal";
|
2020-10-23 01:38:11 +01:00
|
|
|
version = "2.2.0";
|
2020-06-25 20:02:01 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PDAL";
|
|
|
|
repo = "PDAL";
|
|
|
|
rev = version;
|
2020-10-23 01:38:11 +01:00
|
|
|
sha256 = "1i7nbfvv60jjlf3iq7a7xci4dycmg2wrd35dqvjwl6hpfynpb6wz";
|
2020-06-25 20:02:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2020-10-23 01:38:11 +01:00
|
|
|
openscenegraph
|
2020-06-25 20:02:01 +01:00
|
|
|
curl
|
|
|
|
gdal
|
|
|
|
hdf5-cpp
|
|
|
|
LASzip
|
|
|
|
libe57format
|
|
|
|
libgeotiff
|
|
|
|
libxml2
|
|
|
|
postgresql
|
|
|
|
tiledb
|
|
|
|
xercesc
|
|
|
|
zlib
|
|
|
|
zstd
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_PLUGIN_E57=ON"
|
|
|
|
"-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-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "PDAL is Point Data Abstraction Library. GDAL for point cloud data";
|
2020-06-25 20:02:01 +01:00
|
|
|
homepage = "https://pdal.io";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ nh2 ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|