1 {lib, stdenv, fetchurl}:
3 stdenv.mkDerivation rec {
8 url = "https://www.oberhumer.com/opensource/lzo/download/${pname}-${version}.tar.gz";
9 sha256 = "0wm04519pd3g8hqpjqhfr72q8qmbiwqaxcs3cndny9h86aa95y60";
12 configureFlags = lib.optional (!stdenv.hostPlatform.isStatic) "--enable-shared" ;
14 enableParallelBuilding = true;
16 doCheck = true; # not cross;
21 description = "Real-time data (de)compression library";
23 LZO is a portable lossless data compression library written in ANSI C.
24 Both the source code and the compressed data format are designed to be
25 portable across platforms.
26 LZO offers pretty fast compression and *extremely* fast decompression.
27 While it favours speed over compression ratio, it includes slower
28 compression levels achieving a quite competitive compression ratio
29 while still decompressing at this very high speed.
32 homepage = "http://www.oberhumer.com/opensource/lzo";
33 license = licenses.gpl2Plus;
35 platforms = platforms.all;