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