Files
nixpkgs/pkgs/by-name/co/colm/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
972 B
Nix

{
lib,
stdenv,
fetchurl,
makeWrapper,
gcc,
asciidoc,
autoreconfHook,
}:
stdenv.mkDerivation rec {
pname = "colm";
version = "0.13.0.7";
src = fetchurl {
url = "https://www.colm.net/files/colm/${pname}-${version}.tar.gz";
sha256 = "0f76iri173l2wja2v7qrwmf958cqwh5g9x4bhj2z8wknmlla6gz4";
};
patches = [ ./cross-compile.patch ];
nativeBuildInputs = [
makeWrapper
asciidoc
autoreconfHook
];
env = lib.optionalAttrs stdenv.cc.isGNU {
NIX_CFLAGS_COMPILE = "-Wno-error=int-conversion";
};
doCheck = true;
postInstall = ''
wrapProgram $out/bin/colm \
--prefix PATH ":" ${gcc}/bin
'';
meta = with lib; {
description = "Programming language for the analysis and transformation of computer languages";
mainProgram = "colm";
homepage = "http://www.colm.net/open-source/colm";
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = with maintainers; [ pSub ];
};
}