diff options
author | Niklas Hambüchen <mail@nh2.me> | 2020-06-25 20:54:27 +0200 |
---|---|---|
committer | Niklas Hambüchen <mail@nh2.me> | 2020-06-26 15:06:50 +0200 |
commit | 0866700e3b8217f960ba363874a14b23d0138f51 (patch) | |
tree | b6fe30bb8dfffb7cf0238765ccacef75e3497aa0 /pkgs/development/libraries/LASzip | |
parent | 75c7f58507bba4db3cd6669355acb80efaebc908 (diff) | |
download | nixpkgs-0866700e3b8217f960ba363874a14b23d0138f51.tar nixpkgs-0866700e3b8217f960ba363874a14b23d0138f51.tar.gz nixpkgs-0866700e3b8217f960ba363874a14b23d0138f51.tar.bz2 nixpkgs-0866700e3b8217f960ba363874a14b23d0138f51.tar.lz nixpkgs-0866700e3b8217f960ba363874a14b23d0138f51.tar.xz nixpkgs-0866700e3b8217f960ba363874a14b23d0138f51.tar.zst nixpkgs-0866700e3b8217f960ba363874a14b23d0138f51.zip |
LASzip, LASzip2: Rename LASzip -> LASzip2, add LASzip 3.
We have to keep the old one because libLAS does not support LASzip 3, see https://github.com/libLAS/libLAS/issues/144.
Diffstat (limited to 'pkgs/development/libraries/LASzip')
-rw-r--r-- | pkgs/development/libraries/LASzip/LASzip2.nix | 21 | ||||
-rw-r--r-- | pkgs/development/libraries/LASzip/default.nix | 16 |
2 files changed, 31 insertions, 6 deletions
diff --git a/pkgs/development/libraries/LASzip/LASzip2.nix b/pkgs/development/libraries/LASzip/LASzip2.nix new file mode 100644 index 00000000000..418900ddeeb --- /dev/null +++ b/pkgs/development/libraries/LASzip/LASzip2.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchurl, cmake }: + +stdenv.mkDerivation rec { + version = "2.2.0"; + pname = "LASzip"; + + src = fetchurl { + url = "https://github.com/LASzip/LASzip/archive/v${version}.tar.gz"; + sha256 = "b8e8cc295f764b9d402bc587f3aac67c83ed8b39f1cb686b07c168579c61fbb2"; + }; + + buildInputs = [cmake]; + + meta = { + description = "Turn quickly bulky LAS files into compact LAZ files without information loss"; + homepage = https://laszip.org; + license = stdenv.lib.licenses.lgpl2; + maintainers = [ stdenv.lib.maintainers.michelk ]; + platforms = stdenv.lib.platforms.unix; + }; +} diff --git a/pkgs/development/libraries/LASzip/default.nix b/pkgs/development/libraries/LASzip/default.nix index fb747dc9f33..0300aa37f0f 100644 --- a/pkgs/development/libraries/LASzip/default.nix +++ b/pkgs/development/libraries/LASzip/default.nix @@ -1,15 +1,19 @@ -{ stdenv, fetchurl, cmake }: +{ stdenv, fetchFromGitHub, cmake }: stdenv.mkDerivation rec { - version = "2.2.0"; + version = "3.4.3"; pname = "LASzip"; - src = fetchurl { - url = "https://github.com/LASzip/LASzip/archive/v${version}.tar.gz"; - sha256 = "b8e8cc295f764b9d402bc587f3aac67c83ed8b39f1cb686b07c168579c61fbb2"; + src = fetchFromGitHub { + owner = "LASzip"; + repo = "LASzip"; + rev = version; + sha256 = "09lcsgxwv0jq50fhsgfhx0npbf1zcwn3hbnq6q78fshqksbxmz7m"; }; - buildInputs = [cmake]; + nativeBuildInputs = [ + cmake + ]; meta = { description = "Turn quickly bulky LAS files into compact LAZ files without information loss"; |