depot/third_party/nixpkgs/pkgs/tools/compression/lzfse/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

29 lines
973 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "lzfse";
version = "1.0";
src = fetchFromGitHub {
owner = "lzfse";
repo = "lzfse";
rev = "lzfse-${version}";
sha256 = "1mfh6y6vpvxsdwmqmfbkqkwvxc0pz2dqqc72c6fk9sbsrxxaghd5";
};
nativeBuildInputs = [ cmake ];
meta = with lib; {
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 = with maintainers; [ ];
mainProgram = "lzfse";
};
}