lzfse: modernize derivation

This commit is contained in:
KSJ2000 2024-11-14 10:45:26 +02:00
parent 1437068066
commit 6540042e27

View File

@ -1,19 +1,24 @@
{ lib, stdenv, fetchFromGitHub, cmake }:
{
cmake,
fetchFromGitHub,
lib,
stdenv,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "lzfse";
version = "1.0";
src = fetchFromGitHub {
owner = "lzfse";
repo = "lzfse";
rev = "lzfse-${version}";
sha256 = "1mfh6y6vpvxsdwmqmfbkqkwvxc0pz2dqqc72c6fk9sbsrxxaghd5";
rev = "lzfse-${finalAttrs.version}";
hash = "sha256-pcGnes966TSdYeIwjJv4F7C++cRzuYorb7rvu4030NU=";
};
nativeBuildInputs = [ cmake ];
meta = with lib; {
meta = {
homepage = "https://github.com/lzfse/lzfse";
description = "Reference C implementation of the LZFSE compressor";
longDescription = ''
@ -21,9 +26,9 @@ stdenv.mkDerivation rec {
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.
'';
platforms = platforms.unix;
license = licenses.bsd3;
maintainers = [ ];
platforms = lib.platforms.unix;
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ KSJ2000 ];
mainProgram = "lzfse";
};
}
})