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