diff --git a/pkgs/development/tools/parsing/asc-support/asc-support-1.8.nix b/pkgs/development/tools/parsing/asc-support/asc-support-1.8.nix new file mode 100644 index 000000000000..f25840d2ae8b --- /dev/null +++ b/pkgs/development/tools/parsing/asc-support/asc-support-1.8.nix @@ -0,0 +1,14 @@ +{stdenv, fetchurl, aterm, toolbuslib, ptsupport, asfsupport}: derivation { + name = "asc-support-1.8"; + system = stdenv.system; + builder = ./builder.sh; + src = fetchurl { + url = http://www.cwi.nl/projects/MetaEnv/asc-support/asc-support-1.8.tar.gz; + md5 = "e85a790c6004dfb974d79fc9699f69f4"; + }; + stdenv = stdenv; + aterm = aterm; + ptsupport = ptsupport; + toolbuslib = toolbuslib; + asfsupport = asfsupport; +} diff --git a/pkgs/development/tools/parsing/asc-support/builder.sh b/pkgs/development/tools/parsing/asc-support/builder.sh new file mode 100644 index 000000000000..8170bbbea018 --- /dev/null +++ b/pkgs/development/tools/parsing/asc-support/builder.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +buildinputs="$aterm $ptsupport $toolbuslib $asfsupport" +. $stdenv/setup || exit 1 + +tar zxf $src || exit 1 +cd asc-support-* || exit 1 +./configure --prefix=$out --with-aterm=$aterm --with-toolbuslib=$toolbuslib --with-pt-support=$ptsupport --with-asf-support=$asfsupport || exit 1 +make install || exit 1 diff --git a/pkgs/development/tools/parsing/asf-support/asf-support-1.2.nix b/pkgs/development/tools/parsing/asf-support/asf-support-1.2.nix new file mode 100644 index 000000000000..1ee9a6d5e2aa --- /dev/null +++ b/pkgs/development/tools/parsing/asf-support/asf-support-1.2.nix @@ -0,0 +1,12 @@ +{stdenv, fetchurl, aterm, ptsupport}: derivation { + name = "asf-support-1.2"; + system = stdenv.system; + builder = ./builder.sh; + src = fetchurl { + url = http://www.cwi.nl/projects/MetaEnv/asf-support/asf-support-1.2.tar.gz; + md5 = "f32de4c97e62486b67e0af4408585980"; + }; + stdenv = stdenv; + aterm = aterm; + ptsupport = ptsupport; +} diff --git a/pkgs/development/tools/parsing/asf-support/builder.sh b/pkgs/development/tools/parsing/asf-support/builder.sh new file mode 100755 index 000000000000..f7e3f7347af9 --- /dev/null +++ b/pkgs/development/tools/parsing/asf-support/builder.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +buildinputs="$aterm $ptsupport" +. $stdenv/setup || exit 1 + +tar zxf $src || exit 1 +cd asf-support-* || exit 1 +./configure --prefix=$out --with-aterm=$aterm --with-pt-support=$ptsupport || exit 1 +make install || exit 1 diff --git a/pkgs/development/tools/parsing/pgen/builder.sh b/pkgs/development/tools/parsing/pgen/builder.sh new file mode 100644 index 000000000000..107f8a258f0c --- /dev/null +++ b/pkgs/development/tools/parsing/pgen/builder.sh @@ -0,0 +1,17 @@ +#! /bin/sh + +buildinputs="$aterm $getopt $toolbuslib $ptsupport $sdfsupport $asfsupport $ascsupport $sglr" +. $stdenv/setup || exit 1 + +tar zxf $src || exit 1 +cd pgen-* || exit 1 +./configure --prefix=$out --with-aterm=$aterm \ + --with-toolbuslib=$toolbuslib \ + --with-pt-support=$ptsupport \ + --with-sdf-support=$sdfsupport \ + --with-asf-support=$asfsupport \ + --with-asc-support=$asfsupport \ + --with-sglr=$sglr || exit 1 +make install || exit 1 + +echo "$getopt" > $out/propagated-build-inputs || exit 1 diff --git a/pkgs/development/tools/parsing/pgen/pgen-2.0.nix b/pkgs/development/tools/parsing/pgen/pgen-2.0.nix new file mode 100644 index 000000000000..08b6aa78bc86 --- /dev/null +++ b/pkgs/development/tools/parsing/pgen/pgen-2.0.nix @@ -0,0 +1,18 @@ +{stdenv, getopt, fetchurl, aterm, toolbuslib, ptsupport, sdfsupport, asfsupport, ascsupport, sglr}: derivation { + name = "pgen-2.0"; + system = stdenv.system; + builder = ./builder.sh; + src = fetchurl { + url = http://www.cwi.nl/projects/MetaEnv/pgen/pgen-2.0.tar.gz; + md5 = "368cd8abeed29591a35660d8cea79975"; + }; + stdenv = stdenv; + aterm = aterm; + getopt = getopt; + toolbuslib = toolbuslib; + ptsupport = ptsupport; + sdfsupport = sdfsupport; + asfsupport = asfsupport; + ascsupport = ascsupport; + sglr = sglr; +} \ No newline at end of file diff --git a/pkgs/development/tools/parsing/sdf-support/builder.sh b/pkgs/development/tools/parsing/sdf-support/builder.sh new file mode 100755 index 000000000000..258b63002fe4 --- /dev/null +++ b/pkgs/development/tools/parsing/sdf-support/builder.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +buildinputs="$aterm $ptsupport $toolbuslib" +. $stdenv/setup || exit 1 + +tar zxf $src || exit 1 +cd sdf-support-* || exit 1 +./configure --prefix=$out --with-aterm=$aterm --with-toolbuslib=$toolbuslib --with-pt-support=$ptsupport || exit 1 +make install || exit 1 diff --git a/pkgs/development/tools/parsing/sdf-support/sdf-support-2.0.nix b/pkgs/development/tools/parsing/sdf-support/sdf-support-2.0.nix new file mode 100644 index 000000000000..8764ececa77b --- /dev/null +++ b/pkgs/development/tools/parsing/sdf-support/sdf-support-2.0.nix @@ -0,0 +1,13 @@ +{stdenv, fetchurl, aterm, toolbuslib, ptsupport}: derivation { + name = "sdf-support-2.0"; + system = stdenv.system; + builder = ./builder.sh; + src = fetchurl { + url = http://www.cwi.nl/projects/MetaEnv/sdf-support/sdf-support-2.0.tar.gz; + md5 = "2987b89ed1d73e34e128b895ff44264c"; + }; + stdenv = stdenv; + aterm = aterm; + ptsupport = ptsupport; + toolbuslib = toolbuslib; +} diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index 9f9aa4cd0df3..2b71acf8b67e 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -254,19 +254,56 @@ aterm = aterm_2_0_5; }; - pt_support_1_0 = (import ../development/tools/parsing/pt-support/pt-support-1.0.nix) { + ptsupport_1_0 = (import ../development/tools/parsing/pt-support/pt-support-1.0.nix) { fetchurl = fetchurl; stdenv = stdenv; aterm = aterm_2_0_5; toolbuslib = toolbuslib_0_5_1; }; + sdfsupport_2_0 = (import ../development/tools/parsing/sdf-support/sdf-support-2.0.nix) { + fetchurl = fetchurl; + stdenv = stdenv; + aterm = aterm_2_0_5; + toolbuslib = toolbuslib_0_5_1; + ptsupport = ptsupport_1_0; + }; + sglr_3_10_2 = (import ../development/tools/parsing/sglr/sglr-3.10.2.nix) { fetchurl = fetchurl; stdenv = stdenv; aterm = aterm_2_0_5; toolbuslib = toolbuslib_0_5_1; - ptsupport = pt_support_1_0; + ptsupport = ptsupport_1_0; + }; + + asfsupport_1_2 = (import ../development/tools/parsing/asf-support/asf-support-1.2.nix) { + fetchurl = fetchurl; + stdenv = stdenv; + aterm = aterm_2_0_5; + ptsupport = ptsupport_1_0; + }; + + ascsupport_1_8 = (import ../development/tools/parsing/asc-support/asc-support-1.8.nix) { + fetchurl = fetchurl; + stdenv = stdenv; + aterm = aterm_2_0_5; + toolbuslib = toolbuslib_0_5_1; + ptsupport = ptsupport_1_0; + asfsupport = asfsupport_1_2; + }; + + pgen_2_0 = (import ../development/tools/parsing/pgen/pgen-2.0.nix) { + fetchurl = fetchurl; + stdenv = stdenv; + getopt = getopt; + aterm = aterm_2_0_5; + toolbuslib = toolbuslib_0_5_1; + ptsupport = ptsupport_1_0; + asfsupport = asfsupport_1_2; + ascsupport = ascsupport_1_8; + sdfsupport = sdfsupport_2_0; + sglr = sglr_3_10_2; }; strategoxt = (import ../development/compilers/strategoxt) {