mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
53 lines
1.3 KiB
Nix
53 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
updateAutotoolsGnuConfigScriptsHook,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "lzo";
|
|
version = "2.10";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.oberhumer.com/opensource/lzo/download/lzo-${finalAttrs.version}.tar.gz";
|
|
hash = "sha256-wPiSlDIIJm+bZUOzrjCPq2KExckOYnkxRG+0m0IhoHI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ updateAutotoolsGnuConfigScriptsHook ];
|
|
|
|
configureFlags = lib.optional (!stdenv.hostPlatform.isStatic) "--enable-shared";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true; # not cross;
|
|
|
|
strictDeps = true;
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"doc"
|
|
];
|
|
|
|
__structuredAttrs = true;
|
|
|
|
meta = {
|
|
description = "Real-time data (de)compression library";
|
|
longDescription = ''
|
|
LZO is a portable lossless data compression library written in ANSI C.
|
|
Both the source code and the compressed data format are designed to be
|
|
portable across platforms.
|
|
LZO offers pretty fast compression and *extremely* fast decompression.
|
|
While it favours speed over compression ratio, it includes slower
|
|
compression levels achieving a quite competitive compression ratio
|
|
while still decompressing at this very high speed.
|
|
'';
|
|
|
|
homepage = "http://www.oberhumer.com/opensource/lzo";
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|