lzfse: modernize derivation (#348766)

This commit is contained in:
Tomodachi94 2024-11-22 08:18:54 -08:00 committed by GitHub
commit 964bdaac30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,19 +1,24 @@
{ lib, stdenv, fetchFromGitHub, cmake }: {
cmake,
fetchFromGitHub,
lib,
stdenv,
}:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "lzfse"; pname = "lzfse";
version = "1.0"; version = "1.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lzfse"; owner = "lzfse";
repo = "lzfse"; repo = "lzfse";
rev = "lzfse-${version}"; rev = "lzfse-${finalAttrs.version}";
sha256 = "1mfh6y6vpvxsdwmqmfbkqkwvxc0pz2dqqc72c6fk9sbsrxxaghd5"; hash = "sha256-pcGnes966TSdYeIwjJv4F7C++cRzuYorb7rvu4030NU=";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
meta = with lib; { meta = {
homepage = "https://github.com/lzfse/lzfse"; homepage = "https://github.com/lzfse/lzfse";
description = "Reference C implementation of the LZFSE compressor"; description = "Reference C implementation of the LZFSE compressor";
longDescription = '' longDescription = ''
@ -21,9 +26,9 @@ stdenv.mkDerivation rec {
LZFSE is a Lempel-Ziv style data compression algorithm using Finite State Entropy coding. LZFSE is a Lempel-Ziv style data compression algorithm using Finite State Entropy coding.
It targets similar compression rates at higher compression and decompression speed compared to deflate using zlib. It targets similar compression rates at higher compression and decompression speed compared to deflate using zlib.
''; '';
platforms = platforms.unix; platforms = lib.platforms.unix;
license = licenses.bsd3; license = lib.licenses.bsd3;
maintainers = [ ]; maintainers = with lib.maintainers; [ KSJ2000 ];
mainProgram = "lzfse"; mainProgram = "lzfse";
}; };
} })