1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "LAStools";
10 version = "2.0.3";
11
12 src = fetchFromGitHub {
13 owner = "LAStools";
14 repo = "LAStools";
15 rev = "v${version}";
16 sha256 = "sha256-IyZjM8YvIVB0VPNuEhmHHw7EuKw5RanB2qhCnBD1fRY=";
17 };
18
19 patches = [
20 ./drop-64-suffix.patch # necessary to prevent '64' from being appended to the names of the executables
21 ];
22
23 hardeningDisable = [
24 "format"
25 ];
26
27 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isAarch64 "-Wno-narrowing";
28
29 nativeBuildInputs = [
30 cmake
31 ];
32
33 meta = with lib; {
34 description = "Software for rapid LiDAR processing";
35 homepage = "http://lastools.org/";
36 license = licenses.unfree;
37 maintainers = with maintainers; [ stephenwithph ];
38 teams = [ teams.geospatial ];
39 platforms = platforms.unix;
40 };
41}