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
73 lines
1.5 KiB
Nix
73 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
fig2dev,
|
|
texliveSmall,
|
|
ghostscript,
|
|
colm,
|
|
build-manual ? false,
|
|
}:
|
|
|
|
let
|
|
generic =
|
|
{
|
|
version,
|
|
sha256,
|
|
broken ? false,
|
|
license,
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "ragel";
|
|
inherit version;
|
|
|
|
src = fetchurl {
|
|
url = "https://www.colm.net/files/ragel/${pname}-${version}.tar.gz";
|
|
inherit sha256;
|
|
};
|
|
|
|
buildInputs = lib.optionals build-manual [
|
|
fig2dev
|
|
ghostscript
|
|
texliveSmall
|
|
];
|
|
|
|
preConfigure = lib.optionalString build-manual ''
|
|
sed -i "s/build_manual=no/build_manual=yes/g" DIST
|
|
'';
|
|
|
|
configureFlags = [ "--with-colm=${colm}" ];
|
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-std=gnu++98";
|
|
|
|
doCheck = true;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.colm.net/open-source/ragel/";
|
|
description = "State machine compiler";
|
|
mainProgram = "ragel";
|
|
inherit broken license;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ pSub ];
|
|
};
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
ragelStable = generic {
|
|
version = "6.10";
|
|
sha256 = "0gvcsl62gh6sg73nwaxav4a5ja23zcnyxncdcdnqa2yjcpdnw5az";
|
|
license = lib.licenses.gpl2;
|
|
};
|
|
|
|
ragelDev = generic {
|
|
version = "7.0.0.12";
|
|
sha256 = "0x3si355lv6q051lgpg8bpclpiq5brpri5lv3p8kk2qhzfbyz69r";
|
|
license = lib.licenses.mit;
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
};
|
|
}
|