mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
e13831335f
* treewide: stdenv.is -> stdenv.hostPlatform.is * treewide: nixfmt due to ci error
41 lines
867 B
Nix
41 lines
867 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "LAStools";
|
|
version = "2.0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LAStools";
|
|
repo = "LAStools";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-IyZjM8YvIVB0VPNuEhmHHw7EuKw5RanB2qhCnBD1fRY=";
|
|
};
|
|
|
|
patches = [
|
|
./drop-64-suffix.patch # necessary to prevent '64' from being appended to the names of the executables
|
|
];
|
|
|
|
hardeningDisable = [
|
|
"format"
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isAarch64 "-Wno-narrowing";
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Software for rapid LiDAR processing";
|
|
homepage = "http://lastools.org/";
|
|
license = licenses.unfree;
|
|
maintainers = with maintainers; teams.geospatial.members ++ [ stephenwithph ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|