Files
nixpkgs/pkgs/by-name/uc/ucl/package.nix
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

27 lines
704 B
Nix

{
lib,
stdenv,
fetchurl,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ucl";
version = "1.03";
src = fetchurl {
url = "https://www.oberhumer.com/opensource/ucl/download/ucl-${finalAttrs.version}.tar.gz";
sha256 = "b865299ffd45d73412293369c9754b07637680e5c826915f097577cd27350348";
};
# needed to successfully compile with gcc 6+ and modern clang versions where
# `-Wimplicit-function-declaration` is otherwise on and errors by default
env.CFLAGS = "-std=c89";
meta = {
homepage = "http://www.oberhumer.com/opensource/ucl/";
description = "Portable lossless data compression library";
license = lib.licenses.gpl2;
platforms = lib.platforms.unix;
};
})