diff --git a/pkgs/development/compilers/strategoxt/builder.sh b/pkgs/development/compilers/strategoxt/builder.sh index 5ccf79af02b8..5d3427b3a77f 100644 --- a/pkgs/development/compilers/strategoxt/builder.sh +++ b/pkgs/development/compilers/strategoxt/builder.sh @@ -1,4 +1,3 @@ -buildInputs="$aterm $sdf" . $stdenv/setup configureFlags="--with-aterm=$aterm --with-sdf=$sdf" diff --git a/pkgs/development/compilers/strategoxt/default.nix b/pkgs/development/compilers/strategoxt/default.nix index cc19acb46e5d..98bcad9617de 100644 --- a/pkgs/development/compilers/strategoxt/default.nix +++ b/pkgs/development/compilers/strategoxt/default.nix @@ -8,4 +8,5 @@ stdenv.mkDerivation { md5 = "526a28e84248b649bb098b22d227cd26"; }; inherit aterm sdf; + buildInputs = [aterm sdf]; } diff --git a/pkgs/development/tools/parsing/asc-support/asc-support-1.9.nix b/pkgs/development/tools/parsing/asc-support/asc-support-1.9.nix new file mode 100644 index 000000000000..a7710ea952be --- /dev/null +++ b/pkgs/development/tools/parsing/asc-support/asc-support-1.9.nix @@ -0,0 +1,12 @@ +{stdenv, fetchurl, aterm, toolbuslib, ptsupport, asfsupport, errorsupport, sglr}: + +stdenv.mkDerivation { + name = "asc-support-1.9"; + builder = ./builder.sh; + src = fetchurl { + url = http://www.cwi.nl/projects/MetaEnv/asc-support/asc-support-1.9.tar.gz; + md5 = "0c395efec4d3b582af016ab03306ed0a"; + }; + inherit stdenv aterm ptsupport toolbuslib asfsupport errorsupport sglr; + buildInputs = [stdenv aterm ptsupport toolbuslib asfsupport errorsupport sglr]; +} diff --git a/pkgs/development/tools/parsing/asf-support/asf-support-1.3.nix b/pkgs/development/tools/parsing/asf-support/asf-support-1.3.nix new file mode 100644 index 000000000000..cc9056e9ee0c --- /dev/null +++ b/pkgs/development/tools/parsing/asf-support/asf-support-1.3.nix @@ -0,0 +1,12 @@ +{stdenv, fetchurl, aterm, ptsupport, errorsupport}: + +stdenv.mkDerivation { + name = "asf-support-1.3"; + builder = ./builder.sh; + src = fetchurl { + url = http://www.cwi.nl/projects/MetaEnv/asf-support/asf-support-1.3.tar.gz; + md5 = "23539387ff9b0423c1c1933a8ff75d27"; + }; + inherit stdenv aterm ptsupport errorsupport; + buildInputs = [stdenv aterm ptsupport errorsupport]; +} diff --git a/pkgs/development/tools/parsing/error-support/builder.sh b/pkgs/development/tools/parsing/error-support/builder.sh new file mode 100644 index 000000000000..4f5f8ffcb3da --- /dev/null +++ b/pkgs/development/tools/parsing/error-support/builder.sh @@ -0,0 +1,3 @@ +. $stdenv/setup +configureFlags="--with-aterm=$aterm --with-toolbuslib=$toolbuslib" +genericBuild diff --git a/pkgs/development/tools/parsing/error-support/error-support-0.1.nix b/pkgs/development/tools/parsing/error-support/error-support-0.1.nix new file mode 100644 index 000000000000..58d0c9e03fab --- /dev/null +++ b/pkgs/development/tools/parsing/error-support/error-support-0.1.nix @@ -0,0 +1,12 @@ +{stdenv, fetchurl, aterm, toolbuslib}: + +stdenv.mkDerivation { + name = "error-support-0.1"; + builder = ./builder.sh; + src = fetchurl { + url = http://www.cwi.nl/projects/MetaEnv/error-support/error-support-0.1.tar.gz; + md5 = "906389fd8b44bf2847d8281450d5a701"; + }; + inherit aterm toolbuslib; + buildInputs = [aterm toolbuslib]; +} diff --git a/pkgs/development/tools/parsing/pgen/pgen-2.1.nix b/pkgs/development/tools/parsing/pgen/pgen-2.1.nix new file mode 100644 index 000000000000..de6132881a25 --- /dev/null +++ b/pkgs/development/tools/parsing/pgen/pgen-2.1.nix @@ -0,0 +1,13 @@ +{stdenv, getopt, fetchurl, aterm, toolbuslib, ptsupport, sdfsupport, asfsupport, ascsupport, errorsupport, sglr}: + +stdenv.mkDerivation { + name = "pgen-2.1"; + builder = ./builder.sh; + src = fetchurl { + url = http://www.cwi.nl/projects/MetaEnv/pgen/pgen-2.1.tar.gz; + md5 = "3fd46ae1ddc891a488f74350d7b477f9"; + }; + inherit aterm toolbuslib ptsupport sdfsupport asfsupport ascsupport errorsupport sglr; + buildInputs = [aterm toolbuslib ptsupport sdfsupport asfsupport ascsupport errorsupport sglr]; + propagatedBuildInputs = [getopt]; +} diff --git a/pkgs/development/tools/parsing/pt-support/pt-support-1.1.nix b/pkgs/development/tools/parsing/pt-support/pt-support-1.1.nix new file mode 100644 index 000000000000..9058917f05f4 --- /dev/null +++ b/pkgs/development/tools/parsing/pt-support/pt-support-1.1.nix @@ -0,0 +1,12 @@ +{stdenv, fetchurl, aterm, toolbuslib, errorsupport}: + +stdenv.mkDerivation { + name = "pt-support-1.1"; + builder = ./builder.sh; + src = fetchurl { + url = http://www.cwi.nl/projects/MetaEnv/pt-support/pt-support-1.1.tar.gz; + md5 = "51bad46427c7cf95d029c33f079581ff"; + }; + inherit aterm toolbuslib errorsupport; + buildInputs = [aterm toolbuslib errorsupport]; +} diff --git a/pkgs/development/tools/parsing/sdf-support/sdf-support-2.1.nix b/pkgs/development/tools/parsing/sdf-support/sdf-support-2.1.nix new file mode 100644 index 000000000000..61746eb099bd --- /dev/null +++ b/pkgs/development/tools/parsing/sdf-support/sdf-support-2.1.nix @@ -0,0 +1,12 @@ +{stdenv, fetchurl, aterm, toolbuslib, ptsupport, errorsupport}: + +stdenv.mkDerivation { + name = "sdf-support-2.1"; + builder = ./builder.sh; + src = fetchurl { + url = http://www.cwi.nl/projects/MetaEnv/sdf-support/sdf-support-2.1.tar.gz; + md5 = "dbb1d3c51a82dadfaaf5319dba5cc9ef"; + }; + inherit stdenv aterm ptsupport toolbuslib errorsupport; + buildInputs = [stdenv aterm ptsupport toolbuslib errorsupport]; +} diff --git a/pkgs/development/tools/parsing/sdf2/bundle-2.1.nix b/pkgs/development/tools/parsing/sdf2/bundle-2.1.nix new file mode 100644 index 000000000000..ae5fa86f58e1 --- /dev/null +++ b/pkgs/development/tools/parsing/sdf2/bundle-2.1.nix @@ -0,0 +1,36 @@ +{stdenv, fetchurl, getopt, aterm}: + +rec { + + errorsupport = (import ../error-support/error-support-0.1.nix) { + inherit fetchurl stdenv aterm toolbuslib; + }; + + toolbuslib = (import ../toolbuslib/toolbuslib-0.6.nix) { + inherit fetchurl stdenv aterm; + }; + + ptsupport = (import ../pt-support/pt-support-1.1.nix) { + inherit fetchurl stdenv aterm toolbuslib errorsupport; + }; + + asfsupport = (import ../asf-support/asf-support-1.3.nix) { + inherit fetchurl stdenv aterm ptsupport errorsupport; + }; + + sdfsupport = (import ../sdf-support/sdf-support-2.1.nix) { + inherit fetchurl stdenv aterm toolbuslib ptsupport errorsupport; + }; + + sglr = (import ../sglr/sglr-3.11.nix) { + inherit fetchurl stdenv aterm toolbuslib ptsupport errorsupport; + }; + + ascsupport = (import ../asc-support/asc-support-1.9.nix) { + inherit fetchurl stdenv aterm toolbuslib ptsupport asfsupport errorsupport sglr; + }; + + pgen = (import ../pgen/pgen-2.1.nix) { + inherit fetchurl stdenv getopt aterm toolbuslib ptsupport sdfsupport asfsupport ascsupport errorsupport sglr; + }; +} diff --git a/pkgs/development/tools/parsing/sglr/sglr-3.11.nix b/pkgs/development/tools/parsing/sglr/sglr-3.11.nix new file mode 100644 index 000000000000..9e3b95635088 --- /dev/null +++ b/pkgs/development/tools/parsing/sglr/sglr-3.11.nix @@ -0,0 +1,12 @@ +{stdenv, fetchurl, aterm, toolbuslib, ptsupport, errorsupport}: + +stdenv.mkDerivation { + name = "sglr-3.11"; + builder = ./builder.sh; + src = fetchurl { + url = http://www.cwi.nl/projects/MetaEnv/sglr/sglr-3.11.tar.gz; + md5 = "c60536c7e967e93d1ec2cd9c8ae0a4ae"; + }; + inherit stdenv aterm ptsupport toolbuslib errorsupport; + buildInputs = [stdenv aterm ptsupport toolbuslib errorsupport]; +} diff --git a/pkgs/development/tools/parsing/toolbuslib/toolbuslib-0.6.nix b/pkgs/development/tools/parsing/toolbuslib/toolbuslib-0.6.nix new file mode 100644 index 000000000000..c49ac9f0663a --- /dev/null +++ b/pkgs/development/tools/parsing/toolbuslib/toolbuslib-0.6.nix @@ -0,0 +1,11 @@ +{stdenv, fetchurl, aterm}: + +stdenv.mkDerivation { + name = "toolbuslib-0.6"; + src = fetchurl { + url = http://www.cwi.nl/projects/MetaEnv/toolbuslib/toolbuslib-0.6.tar.gz; + md5 = "e117c574b428408ad172b1ad904ff430"; + }; + buildInputs = [aterm]; +} + diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index 89e7b08d4582..dbe446254810 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -287,6 +287,10 @@ rec { inherit fetchurl stdenv; }; + sdf = (import ../development/tools/parsing/sdf2/bundle-2.1.nix) { + inherit fetchurl stdenv getopt aterm; + }; + sdf2 = (import ../development/tools/parsing/sdf2) { inherit fetchurl stdenv aterm getopt; };