Files
nixpkgs/pkgs/by-name/lz/lzfse/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

43 lines
1.2 KiB
Nix

{
cmake,
fetchFromGitHub,
lib,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "lzfse";
version = "1.0";
src = fetchFromGitHub {
owner = "lzfse";
repo = "lzfse";
rev = "lzfse-${finalAttrs.version}";
hash = "sha256-pcGnes966TSdYeIwjJv4F7C++cRzuYorb7rvu4030NU=";
};
nativeBuildInputs = [ cmake ];
# Fix the build with CMake 4.
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail \
'cmake_minimum_required(VERSION 2.8.6)' \
'cmake_minimum_required(VERSION 3.10)'
'';
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 = lib.platforms.unix;
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ KSJ2000 ];
mainProgram = "lzfse";
};
})