git.iko.soy/typeable/nixpkgs
on master help sign in
ragel: add stable version, default to stable
commit3d1206dfcc4a5a8927e7bfd83039c4a725abd120 authorFranz Pletz <fpletz@fnordicwalking.de> dateFri 16 Dec 2016, 15:50 (10 years ago) parent664cc49
2 files changed+43−26
pkgs/development/tools/parsing/ragel/default.nix+39−23 pkgs/top-level/all-packages.nix+4−3
pkgs/development/tools/parsing/ragel/default.nix+39−23
@@ -1,30 +1,46 @@
1−{stdenv, fetchurl, transfig, tex , ghostscript, colm, build-manual ? false
1+{ stdenv, fetchurl, transfig, tex, ghostscript, colm
2+, build-manual ? false
23}:
34
4−stdenv.mkDerivation rec {
5− name = "ragel-${version}";
6− version = "7.0.0.9";
5+let
6+ generic = { version, sha256 }:
7+ stdenv.mkDerivation rec {
8+ name = "ragel-${version}";
79
8− src = fetchurl {
9− url = "http://www.colm.net/files/ragel/${name}.tar.gz";
10− sha256 = "1w2jhfg3fxl15gcmm7z3jbi6splgc83mmwcfbp08lfc8sg2wmrmr";
10+ src = fetchurl {
11+ url = "http://www.colm.net/files/ragel/${name}.tar.gz";
12+ inherit sha256;
13+ };
14+
15+ buildInputs = stdenv.lib.optional build-manual [ transfig ghostscript tex ];
16+
17+ preConfigure = stdenv.lib.optional build-manual ''
18+ sed -i "s/build_manual=no/build_manual=yes/g" DIST
19+ '';
20+
21+ configureFlags = [ "--with-colm=${colm}" ];
22+
23+ doCheck = true;
24+
25+ meta = with stdenv.lib; {
26+ homepage = http://www.complang.org/ragel;
27+ description = "State machine compiler";
28+ license = licenses.gpl2;
29+ platforms = platforms.unix;
30+ maintainers = with maintainers; [ pSub ];
31+ };
32+ };
33+
34+in
35+
36+{
37+ ragelStable = generic {
38+ version = "6.9";
39+ sha256 = "02k6rwh8cr95f1p5sjjr3wa6dilg06572xz1v71dk8awmc7vw1vf";
1140 };
1241
13− buildInputs = stdenv.lib.optional build-manual [ transfig ghostscript tex ];
14−
15− preConfigure = stdenv.lib.optional build-manual ''
16− sed -i "s/build_manual=no/build_manual=yes/g" DIST
17− '';
18−
19− configureFlags = [ "--with-colm=${colm}" ];
20−
21− doCheck = true;
22−
23− meta = with stdenv.lib; {
24− homepage = http://www.complang.org/ragel;
25− description = "State machine compiler";
26− license = licenses.gpl2;
27− platforms = platforms.unix;
28− maintainers = with maintainers; [ pSub ];
42+ ragelDev = generic {
43+ version = "7.0.0.9";
44+ sha256 = "1w2jhfg3fxl15gcmm7z3jbi6splgc83mmwcfbp08lfc8sg2wmrmr";
2945 };
3046}
pkgs/top-level/all-packages.nix+4−3
@@ -6438,10 +6438,11 @@ in
64386438 luaBindings = config.radare.luaBindings or false;
64396439 };
64406440
6441+ ragel = ragelStable;
64416442
6442− ragel = callPackage ../development/tools/parsing/ragel {
6443− tex = texlive.combined.scheme-small;
6444− };
6443+ inherit (callPackages ../development/tools/parsing/ragel {
6444+ tex = texlive.combined.scheme-small;
6445+ }) ragelStable ragelDev;
64456446
64466447 hammer = callPackage ../development/tools/parsing/hammer { };
64476448