Skip to content

Commit

Permalink
lzfse: modernize derivation (#348766)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomodachi94 authored Nov 22, 2024
2 parents b9dec6d + 6540042 commit 964bdaa
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions pkgs/by-name/lz/lzfse/package.nix
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
{ 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 = ''
This is a reference C implementation of the LZFSE compressor introduced in the Compression library with OS X 10.11 and iOS 9.
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";
};
}
})

0 comments on commit 964bdaa

Please sign in to comment.