ragel: add stable version, default to stable
This commit is contained in:
parent
664cc49b19
commit
3d1206dfcc
@ -1,13 +1,15 @@
|
||||
{stdenv, fetchurl, transfig, tex , ghostscript, colm, build-manual ? false
|
||||
{ stdenv, fetchurl, transfig, tex, ghostscript, colm
|
||||
, build-manual ? false
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
let
|
||||
generic = { version, sha256 }:
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ragel-${version}";
|
||||
version = "7.0.0.9";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.colm.net/files/ragel/${name}.tar.gz";
|
||||
sha256 = "1w2jhfg3fxl15gcmm7z3jbi6splgc83mmwcfbp08lfc8sg2wmrmr";
|
||||
inherit sha256;
|
||||
};
|
||||
|
||||
buildInputs = stdenv.lib.optional build-manual [ transfig ghostscript tex ];
|
||||
@ -27,4 +29,18 @@ stdenv.mkDerivation rec {
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ pSub ];
|
||||
};
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
{
|
||||
ragelStable = generic {
|
||||
version = "6.9";
|
||||
sha256 = "02k6rwh8cr95f1p5sjjr3wa6dilg06572xz1v71dk8awmc7vw1vf";
|
||||
};
|
||||
|
||||
ragelDev = generic {
|
||||
version = "7.0.0.9";
|
||||
sha256 = "1w2jhfg3fxl15gcmm7z3jbi6splgc83mmwcfbp08lfc8sg2wmrmr";
|
||||
};
|
||||
}
|
||||
|
@ -6438,10 +6438,11 @@ in
|
||||
luaBindings = config.radare.luaBindings or false;
|
||||
};
|
||||
|
||||
ragel = ragelStable;
|
||||
|
||||
ragel = callPackage ../development/tools/parsing/ragel {
|
||||
inherit (callPackages ../development/tools/parsing/ragel {
|
||||
tex = texlive.combined.scheme-small;
|
||||
};
|
||||
}) ragelStable ragelDev;
|
||||
|
||||
hammer = callPackage ../development/tools/parsing/hammer { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user