depot/third_party/nixpkgs/pkgs/by-name/la/laszip/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

33 lines
776 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, fixDarwinDylibNames
}:
stdenv.mkDerivation (finalAttrs: {
version = "3.4.3";
pname = "laszip";
src = fetchFromGitHub {
owner = "LASzip";
repo = "LASzip";
rev = finalAttrs.version;
hash = "sha256-9fzal54YaocONtguOCxnP7h1LejQPQ0dKFiCzfvTjCY=";
};
nativeBuildInputs = [
cmake
] ++ lib.optionals stdenv.isDarwin [
fixDarwinDylibNames
];
meta = {
description = "Turn quickly bulky LAS files into compact LAZ files without information loss";
homepage = "https://laszip.org";
changelog = "https://github.com/LASzip/LASzip/releases/tag/${finalAttrs.src.rev}";
license = lib.licenses.lgpl2;
maintainers = [ lib.maintainers.michelk ];
platforms = lib.platforms.unix;
};
})