2009-12-07 15:19:23 +01:00
|
|
|
{stdenv, fetchurl, aterm, pkgconfig, getopt, jdk, makeStaticBinaries, readline, ncurses}:
|
2009-09-15 13:36:41 +02:00
|
|
|
|
|
|
|
rec {
|
|
|
|
|
|
|
|
inherit aterm;
|
|
|
|
|
|
|
|
sdf = stdenv.mkDerivation ( rec {
|
|
|
|
name = "sdf2-bundle-2.4";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "ftp://ftp.strategoxt.org/pub/stratego/StrategoXT/strategoxt-0.17/sdf2-bundle-2.4.tar.gz";
|
|
|
|
sha256 = "2ec83151173378f48a3326e905d11049d094bf9f0c7cff781bc2fce0f3afbc11";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [pkgconfig aterm];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace pgen/src/sdf2table.src \
|
|
|
|
--replace getopt ${getopt}/bin/getopt
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.program-transformation.org/Sdf/SdfBundle;
|
|
|
|
meta = "Tools for the SDF2 Syntax Definition Formalism, including the `pgen' parser generator and `sglr' parser";
|
|
|
|
};
|
|
|
|
} // ( if stdenv.system == "i686-cygwin" then { CFLAGS = "-O2 -Wl,--stack=0x2300000"; } else {} ) ) ;
|
|
|
|
|
|
|
|
|
|
|
|
strategoxt = stdenv.mkDerivation rec {
|
2012-03-07 14:21:44 +01:00
|
|
|
name = "strategoxt-1.8pre24429";
|
2009-09-15 13:36:41 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-03-07 14:21:44 +01:00
|
|
|
url = http://hydra.nixos.org/build/2175544/download/1/strategoxt-1.8pre24429.tar.gz;
|
|
|
|
sha256 = "124f1d61a440b94c38b731c2e7015340dbbc1deb6d442b31dbecb46b0a00fa83";
|
2009-09-15 13:36:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [pkgconfig aterm sdf getopt];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://strategoxt.org/;
|
|
|
|
meta = "A language and toolset for program transformation";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2009-12-07 15:19:23 +01:00
|
|
|
strategoShell = stdenv.mkDerivation rec {
|
|
|
|
name = "stratego-shell-0.7";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "ftp://ftp.strategoxt.org/pub/stratego/StrategoXT/strategoxt-0.17/stratego-shell-0.7.tar.gz";
|
|
|
|
sha256 = "0q21vks9gaw9v4rxz90wb0pxzb19l7gwi4nbjvk4zb1imdk7znck";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [pkgconfig aterm sdf strategoxt getopt readline ncurses];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://strategoxt.org/;
|
|
|
|
meta = "A language and toolset for program transformation";
|
2014-08-08 17:58:34 +02:00
|
|
|
broken = true;
|
2009-12-07 15:19:23 +01:00
|
|
|
};
|
|
|
|
};
|
2009-09-15 13:36:41 +02:00
|
|
|
|
|
|
|
javafront = stdenv.mkDerivation (rec {
|
2013-07-13 23:14:07 +02:00
|
|
|
name = "java-front-0.9.1pre20122";
|
2009-09-15 13:36:41 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-11-22 15:51:25 +01:00
|
|
|
url = "http://hydra.nixos.org/build/766286/download/1/java-front-0.9.1pre20122.tar.gz";
|
|
|
|
sha256 = "ef85d3af962fcd54e028ea501e64220b86af335a49143f2819bd3f4789bef7e6";
|
2009-09-15 13:36:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [pkgconfig aterm sdf strategoxt];
|
|
|
|
|
|
|
|
# !!! The explicit `--with-strategoxt' is necessary; otherwise we
|
|
|
|
# get an XTC registration that refers to "/share/strategoxt/XTC".
|
|
|
|
configureFlags = "--enable-xtc --with-strategoxt=${strategoxt}";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://strategoxt.org/Stratego/JavaFront;
|
|
|
|
meta = "Tools for generating or transforming Java code";
|
|
|
|
};
|
|
|
|
} // ( if stdenv.system == "i686-cygwin" then { CFLAGS = "-O2"; } else {} ) ) ;
|
|
|
|
|
|
|
|
|
2009-12-07 15:57:10 +01:00
|
|
|
aspectjfront = stdenv.mkDerivation (rec {
|
|
|
|
name = "aspectj-front-0.2pre20035";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://hydra.nixos.org/build/175690/download/1/aspectj-front-0.2pre20035.tar.gz";
|
|
|
|
sha256 = "48f6cda6f9f19436e9553e8d27e6bb42500d08370332e3ad214affb49851e58e";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [pkgconfig aterm sdf strategoxt javafront];
|
|
|
|
|
|
|
|
} // ( if stdenv.system == "i686-cygwin" then { CFLAGS = "-O2"; } else {} ) ) ;
|
|
|
|
|
2009-09-15 13:36:41 +02:00
|
|
|
dryad = stdenv.mkDerivation rec {
|
2013-07-13 21:46:09 +02:00
|
|
|
name = "dryad-0.2pre18355";
|
2009-09-15 13:36:41 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://releases.strategoxt.org/dryad/${name}-zbqfh1rm/dryad-0.2pre18355.tar.gz";
|
|
|
|
sha256 = "2c27b7f82f87ffc27b75969acc365560651275d348b3b5cbb530276d20ae83ab";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [jdk pkgconfig aterm sdf strategoxt javafront];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://strategoxt.org/Stratego/TheDryad;
|
|
|
|
meta = "A collection of tools for developing transformation systems for Java source and bytecode";
|
2014-08-08 17:58:34 +02:00
|
|
|
broken = true;
|
2009-09-15 13:36:41 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
libraries = ... {
|
|
|
|
configureFlags =
|
|
|
|
if stdenv ? isMinGW && stdenv.isMinGW then "--with-std=C99" else "";
|
|
|
|
|
|
|
|
# avoids loads of warnings about too big description fields because of a broken debug format
|
|
|
|
CFLAGS =
|
|
|
|
if stdenv ? isMinGW && stdenv.isMinGW then "-O2" else null;
|
|
|
|
};
|
|
|
|
*/
|
|
|
|
|
|
|
|
}
|