tuicam: init at 0.0.2 (#377825)
[NixPkgs.git] / pkgs / by-name / lz / lzo / package.nix
blob99d090f4e862dc3b19e21641d35219097325d07f
2   lib,
3   stdenv,
4   fetchurl,
5   updateAutotoolsGnuConfigScriptsHook,
6 }:
8 stdenv.mkDerivation rec {
9   pname = "lzo";
10   version = "2.10";
12   src = fetchurl {
13     url = "https://www.oberhumer.com/opensource/lzo/download/${pname}-${version}.tar.gz";
14     sha256 = "0wm04519pd3g8hqpjqhfr72q8qmbiwqaxcs3cndny9h86aa95y60";
15   };
17   nativeBuildInputs = [ updateAutotoolsGnuConfigScriptsHook ];
19   configureFlags = lib.optional (!stdenv.hostPlatform.isStatic) "--enable-shared";
21   enableParallelBuilding = true;
23   doCheck = true; # not cross;
25   strictDeps = true;
27   meta = with lib; {
28     description = "Real-time data (de)compression library";
29     longDescription = ''
30       LZO is a portable lossless data compression library written in ANSI C.
31       Both the source code and the compressed data format are designed to be
32       portable across platforms.
33       LZO offers pretty fast compression and *extremely* fast decompression.
34       While it favours speed over compression ratio, it includes slower
35       compression levels achieving a quite competitive compression ratio
36       while still decompressing at this very high speed.
37     '';
39     homepage = "http://www.oberhumer.com/opensource/lzo";
40     license = licenses.gpl2Plus;
42     platforms = platforms.all;
43   };