mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
f9fdf2d402
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
22 lines
614 B
Nix
22 lines
614 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ucl";
|
|
version = "1.03";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.oberhumer.com/opensource/ucl/download/ucl-${version}.tar.gz";
|
|
sha256 = "b865299ffd45d73412293369c9754b07637680e5c826915f097577cd27350348";
|
|
};
|
|
|
|
# needed to successfully compile with gcc 6
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-std=c90";
|
|
|
|
meta = {
|
|
homepage = "http://www.oberhumer.com/opensource/ucl/";
|
|
description = "Portable lossless data compression library";
|
|
license = lib.licenses.gpl2;
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|