3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libLAS/default.nix

33 lines
1,012 B
Nix
Raw Normal View History

2018-04-16 23:08:17 +01:00
{ stdenv, fetchurl, boost, cmake, gdal, libgeotiff, libtiff, LASzip, fixDarwinDylibNames }:
stdenv.mkDerivation rec {
2016-11-11 02:54:37 +00:00
name = "libLAS-1.8.1";
src = fetchurl {
url = "https://download.osgeo.org/liblas/${name}.tar.bz2";
2016-11-11 02:54:37 +00:00
sha256 = "0xjfxb3ydvr2258ji3spzyf81g9caap19ql2pk91wiivqsc4mnws";
};
2018-04-16 23:08:17 +01:00
buildInputs = [ boost cmake gdal libgeotiff libtiff LASzip ]
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
2018-04-16 23:08:17 +01:00
cmakeFlags = [
"-DGDAL_CONFIG=${gdal}/bin/gdal-config"
2018-04-20 22:15:06 +01:00
"-DWITH_LASZIP=ON"
"-DLASZIP_INCLUDE_DIR=${LASzip}/include"
2018-04-16 23:08:17 +01:00
];
postFixup = stdenv.lib.optionalString stdenv.isDarwin ''
install_name_tool -change "@rpath/liblas.3.dylib" "$out/lib/liblas.3.dylib" $out/lib/liblas_c.dylib
'';
meta = {
description = "LAS 1.0/1.1/1.2 ASPRS LiDAR data translation toolset";
2018-09-02 19:18:15 +01:00
homepage = https://liblas.org;
license = stdenv.lib.licenses.bsd3;
2018-04-16 23:08:17 +01:00
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.michelk ];
};
}