1 { lib, stdenv, fetchFromGitHub, cmake }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
10 rev = "lzfse-${version}";
11 sha256 = "1mfh6y6vpvxsdwmqmfbkqkwvxc0pz2dqqc72c6fk9sbsrxxaghd5";
14 nativeBuildInputs = [ cmake ];
17 homepage = "https://github.com/lzfse/lzfse";
18 description = "Reference C implementation of the LZFSE compressor";
20 This is a reference C implementation of the LZFSE compressor introduced in the Compression library with OS X 10.11 and iOS 9.
21 LZFSE is a Lempel-Ziv style data compression algorithm using Finite State Entropy coding.
22 It targets similar compression rates at higher compression and decompression speed compared to deflate using zlib.
24 platforms = platforms.unix;
25 license = licenses.bsd3;
27 mainProgram = "lzfse";