1{ lib
2, stdenv
3, fetchFromGitHub
4, cmake
5, fixDarwinDylibNames
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 version = "3.4.3";
10 pname = "LASzip";
11
12 src = fetchFromGitHub {
13 owner = "LASzip";
14 repo = "LASzip";
15 rev = finalAttrs.version;
16 hash = "sha256-9fzal54YaocONtguOCxnP7h1LejQPQ0dKFiCzfvTjCY=";
17 };
18
19 nativeBuildInputs = [
20 cmake
21 ] ++ lib.optionals stdenv.isDarwin [
22 fixDarwinDylibNames
23 ];
24
25 meta = {
26 description = "Turn quickly bulky LAS files into compact LAZ files without information loss";
27 homepage = "https://laszip.org";
28 changelog = "https://github.com/LASzip/LASzip/releases/tag/${finalAttrs.src.rev}";
29 license = lib.licenses.lgpl2;
30 maintainers = [ lib.maintainers.michelk ];
31 platforms = lib.platforms.unix;
32 };
33})