From a91a232d1077c9ddcfe8c6cbf09b1fd2ef69dee4 Mon Sep 17 00:00:00 2001 From: David McFarland Date: Sun, 21 Sep 2025 20:20:06 -0300 Subject: [PATCH] cocom-tool-set: init at 0.996 Co-authored-by: Brian McKenna --- pkgs/by-name/co/cocom-tool-set/package.nix | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/by-name/co/cocom-tool-set/package.nix diff --git a/pkgs/by-name/co/cocom-tool-set/package.nix b/pkgs/by-name/co/cocom-tool-set/package.nix new file mode 100644 index 000000000000..f4d2b2358d43 --- /dev/null +++ b/pkgs/by-name/co/cocom-tool-set/package.nix @@ -0,0 +1,43 @@ +{ + lib, + stdenv, + fetchurl, + autoreconfHook, + bison, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "cocom"; + version = "0.996"; + + src = fetchurl { + url = "mirror://sourceforge/cocom/cocom-${finalAttrs.version}.tar.gz"; + hash = "sha256-4UOrVW15o17zHsHiQIl8m4qNC2aT5QorbkfX/UsgBRk="; + }; + + env = { + RANLIB = "${stdenv.cc.targetPrefix}gcc-ranlib"; + NIX_CFLAGS_COMPILE = toString [ + "-Wno-error=implicit-int" + "-Wno-error=implicit-function-declaration" + ]; + }; + + autoreconfFlags = "REGEX"; + + strictDeps = true; + + nativeBuildInputs = [ + autoreconfHook + bison + ]; + + hardeningDisable = [ "format" ]; + + meta = { + description = "Tool set oriented towards the creation of compilers"; + homepage = "https://cocom.sourceforge.net/"; + license = lib.licenses.gpl2Plus; + maintainers = with lib.maintainers; [ puffnfresh ]; + platforms = lib.platforms.unix; + }; +})