1{ stdenv, fetchurl }:
2
3stdenv.mkDerivation {
4 name = "ucl-1.03";
5 src = fetchurl {
6 url = http://www.oberhumer.com/opensource/ucl/download/ucl-1.03.tar.gz;
7 sha256 = "b865299ffd45d73412293369c9754b07637680e5c826915f097577cd27350348";
8 };
9
10 # needed to successfully compile with gcc 6
11 NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isGNU "-std=c90";
12
13 meta = {
14 homepage = http://www.oberhumer.com/opensource/ucl/;
15 description = "Portable lossless data compression library";
16 license = stdenv.lib.licenses.gpl2;
17 platforms = stdenv.lib.platforms.unix;
18 };
19}