* More cleanup. Updated to the latest Stratego/XT 0.17.

svn path=/nixpkgs/trunk/; revision=14610
This commit is contained in:
Eelco Dolstra
2009-03-19 14:34:16 +00:00
parent b460175a7e
commit 5986a4d175
13 changed files with 111 additions and 158 deletions

View File

@@ -1,4 +0,0 @@
source $stdenv/setup
configureFlags="--with-aterm=$aterm --with-sdf=$sdf --with-strategoxt=$strategoxt"
genericBuild

View File

@@ -1,14 +0,0 @@
{stdenv, fetchurl, aterm, sdf, strategoxt, pkgconfig}:
stdenv.mkDerivation {
name = "java-front-0.9";
builder = ./builder.sh;
src = fetchurl {
url = http://buildfarm.st.ewi.tudelft.nl/releases/strategoxt/java-front-0.9pre17376-qi43zwhy/java-front-0.9pre17376.tar.gz;
md5 = "fec70158b110c77a2e5db29676438029";
};
inherit aterm sdf strategoxt;
buildInputs = [pkgconfig aterm sdf strategoxt];
}

View File

@@ -1,15 +1,51 @@
{stdenv, fetchurl, aterm, sdf, pkgconfig}:
{stdenv, fetchurl, aterm, pkgconfig, getopt}:
stdenv.mkDerivation {
rec {
name = "strategoxt-0.16";
builder = ./builder.sh;
inherit aterm;
src = fetchurl {
url = http://nix.cs.uu.nl/dist/stratego/strategoxt-0.16/strategoxt-0.16.tar.gz;
md5 = "8b8eabbd785faa84ec20134b63d4829e";
sdf = stdenv.mkDerivation rec {
name = "sdf2-bundle-2.3.3";
src = fetchurl {
url = ftp://ftp.stratego-language.org/pub/stratego/sdf2/sdf2-bundle-2.3.3/sdf2-bundle-2.3.3.tar.gz;
md5 = "62ecabe5fbb8bbe043ee18470107ef88";
};
buildInputs = [pkgconfig aterm getopt];
preConfigure = ''
substituteInPlace pgen/src/sdf2table.src \
--replace getopt ${getopt}/bin/getopt
'';
configureFlags = "--disable-static";
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";
};
};
inherit aterm sdf;
buildInputs = [pkgconfig aterm sdf];
strategoxt = stdenv.mkDerivation {
name = "strategoxt-0.16";
src = fetchurl {
url = ftp://ftp.strategoxt.org/pub/stratego/StrategoXT/strategoxt-0.16/strategoxt-0.16.tar.gz;
md5 = "8b8eabbd785faa84ec20134b63d4829e";
};
buildInputs = [pkgconfig aterm sdf getopt];
configureFlags = "--disable-static";
meta = {
homepage = http://strategoxt.org/;
meta = "A language and toolset for program transformation";
};
};
}

View File

@@ -1,15 +1,62 @@
{stdenv, fetchurl, aterm, sdf, pkgconfig}:
{stdenv, fetchurl, aterm, pkgconfig, getopt}:
stdenv.mkDerivation {
rec {
name = "strategoxt-0.17";
builder = ./builder.sh;
inherit aterm;
src = fetchurl {
url = http://buildfarm.st.ewi.tudelft.nl/releases/strategoxt/strategoxt-0.17M3pre17099/strategoxt-0.17M3pre17099.tar.gz;
md5 = "fc9bc3cb6d80bfa6ee1fadd2dd828c72";
sdf = stdenv.mkDerivation rec {
name = "sdf2-bundle-2.4pre212034";
src = fetchurl {
url = "http://releases.strategoxt.org/strategoxt-0.17/sdf2-bundle/${name}-37nm9z7p/sdf2-bundle-2.4.tar.gz";
sha256 = "2ec83151173378f48a3326e905d11049d094bf9f0c7cff781bc2fce0f3afbc11";
};
buildInputs = [pkgconfig aterm];
preConfigure = ''
substituteInPlace pgen/src/sdf2table.src \
--replace getopt ${getopt}/bin/getopt
'';
configureFlags = "--disable-static";
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";
};
};
inherit aterm sdf;
buildInputs = [pkgconfig aterm sdf];
strategoxt = stdenv.mkDerivation rec {
name = "strategoxt-0.17pre18269";
src = fetchurl {
url = "http://releases.strategoxt.org/strategoxt/${name}-a0f0wy0j/${name}.tar.gz";
sha256 = "7c51c2452bd45f34cd480b6b3cbaac50e0fc53fbb1a884d97cf4e2c2b5330577";
};
buildInputs = [pkgconfig aterm sdf getopt];
configureFlags = "--disable-static";
meta = {
homepage = http://strategoxt.org/;
meta = "A language and toolset for program transformation";
};
};
/*
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;
};
*/
}

View File

@@ -1,4 +0,0 @@
source $stdenv/setup
configureFlags="--with-aterm=$aterm --with-sdf=$sdf"
genericBuild

View File

@@ -1,19 +0,0 @@
{stdenv, fetchurl, pkgconfig, aterm}:
stdenv.mkDerivation {
name = "stratego-libraries-0.17";
src =
fetchurl {
url = http://www.cs.uu.nl/people/martin/stratego-libraries.tar.gz;
md5 = "e99ce18179400c8ef373e8e668a4c576";
};
buildInputs = [pkgconfig aterm];
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;
}

View File

@@ -1,12 +0,0 @@
{stdenv, fetchurl, aterm, sdf, strategoxt, pkgconfig}:
stdenv.mkDerivation {
name = "strategoxt-utils-0.16";
src = fetchurl {
url = http://nix.cs.uu.nl/dist/stratego/strategoxt-utils-0.16/strategoxt-utils-0.16.tar.gz;
md5 = "a118d67e7a2f1eb61f0cfccbe61aa509";
};
inherit aterm sdf;
buildInputs = [pkgconfig aterm sdf strategoxt];
}