btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / uc / ucl / package.nix
blobd8e05e9374bfa3c9b1d21a2478798b7a5b6f3641
1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
4   pname = "ucl";
5   version = "1.03";
7   src = fetchurl {
8     url = "https://www.oberhumer.com/opensource/ucl/download/ucl-${version}.tar.gz";
9     sha256 = "b865299ffd45d73412293369c9754b07637680e5c826915f097577cd27350348";
10   };
12   # needed to successfully compile with gcc 6+ and modern clang versions where
13   # `-Wimplicit-function-declaration` is otherwise on and errors by default
14   env.CFLAGS = "-std=c89";
16   meta = {
17     homepage = "http://www.oberhumer.com/opensource/ucl/";
18     description = "Portable lossless data compression library";
19     license = lib.licenses.gpl2;
20     platforms = lib.platforms.unix;
21   };