Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 pname = "ucl"; 5 version = "1.03"; 6 7 src = fetchurl { 8 url = "https://www.oberhumer.com/opensource/ucl/download/ucl-${version}.tar.gz"; 9 sha256 = "b865299ffd45d73412293369c9754b07637680e5c826915f097577cd27350348"; 10 }; 11 12 # needed to successfully compile with gcc 6 13 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-std=c90"; 14 15 meta = { 16 homepage = "http://www.oberhumer.com/opensource/ucl/"; 17 description = "Portable lossless data compression library"; 18 license = lib.licenses.gpl2; 19 platforms = lib.platforms.unix; 20 }; 21}