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