1 { lib, stdenv, fetchurl, fig2dev, texliveSmall, ghostscript, colm
6 generic = { version, sha256, broken ? false, license }:
7 stdenv.mkDerivation rec {
12 url = "https://www.colm.net/files/ragel/${pname}-${version}.tar.gz";
16 buildInputs = lib.optionals build-manual [ fig2dev ghostscript texliveSmall ];
18 preConfigure = lib.optionalString build-manual ''
19 sed -i "s/build_manual=no/build_manual=yes/g" DIST
22 configureFlags = [ "--with-colm=${colm}" ];
24 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-std=gnu++98";
28 enableParallelBuilding = true;
31 homepage = "https://www.colm.net/open-source/ragel/";
32 description = "State machine compiler";
33 inherit broken license;
34 platforms = platforms.unix;
35 maintainers = with maintainers; [ pSub ];
42 ragelStable = generic {
44 sha256 = "0gvcsl62gh6sg73nwaxav4a5ja23zcnyxncdcdnqa2yjcpdnw5az";
45 license = lib.licenses.gpl2;
50 sha256 = "0x3si355lv6q051lgpg8bpclpiq5brpri5lv3p8kk2qhzfbyz69r";
51 license = lib.licenses.mit;
52 broken = stdenv.isDarwin;