LASzip: refactor
- use finalAttrs - replace hash with SRI hash - add meta.changelog
This commit is contained in:
parent
8f67c489ba
commit
32f3046ef5
|
@ -1,14 +1,19 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, cmake, fixDarwinDylibNames }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, cmake
|
||||||
|
, fixDarwinDylibNames
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
version = "3.4.3";
|
version = "3.4.3";
|
||||||
pname = "LASzip";
|
pname = "LASzip";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "LASzip";
|
owner = "LASzip";
|
||||||
repo = "LASzip";
|
repo = "LASzip";
|
||||||
rev = version;
|
rev = finalAttrs.version;
|
||||||
sha256 = "09lcsgxwv0jq50fhsgfhx0npbf1zcwn3hbnq6q78fshqksbxmz7m";
|
hash = "sha256-9fzal54YaocONtguOCxnP7h1LejQPQ0dKFiCzfvTjCY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -20,8 +25,9 @@ stdenv.mkDerivation rec {
|
||||||
meta = {
|
meta = {
|
||||||
description = "Turn quickly bulky LAS files into compact LAZ files without information loss";
|
description = "Turn quickly bulky LAS files into compact LAZ files without information loss";
|
||||||
homepage = "https://laszip.org";
|
homepage = "https://laszip.org";
|
||||||
|
changelog = "https://github.com/LASzip/LASzip/releases/tag/${finalAttrs.src.rev}";
|
||||||
license = lib.licenses.lgpl2;
|
license = lib.licenses.lgpl2;
|
||||||
maintainers = [ lib.maintainers.michelk ];
|
maintainers = [ lib.maintainers.michelk ];
|
||||||
platforms = lib.platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue