From 4c14c369feceffe1dd87c85d3dcd230772a69360 Mon Sep 17 00:00:00 2001 From: Martin Bravenboer Date: Thu, 22 Jan 2004 19:09:49 +0000 Subject: Added sglr svn path=/nixpkgs/trunk/; revision=707 --- pkgs/development/tools/parsing/pt-support/builder.sh | 2 +- pkgs/development/tools/parsing/sglr/builder.sh | 9 +++++++++ pkgs/development/tools/parsing/sglr/sglr-3.10.2.nix | 13 +++++++++++++ pkgs/development/tools/parsing/toolbuslib/builder.sh | 2 +- pkgs/system/all-packages-generic.nix | 8 ++++++++ 5 files changed, 32 insertions(+), 2 deletions(-) create mode 100755 pkgs/development/tools/parsing/sglr/builder.sh create mode 100644 pkgs/development/tools/parsing/sglr/sglr-3.10.2.nix diff --git a/pkgs/development/tools/parsing/pt-support/builder.sh b/pkgs/development/tools/parsing/pt-support/builder.sh index 475cf2d5c6fe..a76e84c4bb41 100755 --- a/pkgs/development/tools/parsing/pt-support/builder.sh +++ b/pkgs/development/tools/parsing/pt-support/builder.sh @@ -1,6 +1,6 @@ #! /bin/sh -buildinputs="$aterm $getopt $toolbuslib" +buildinputs="$aterm $toolbuslib" . $stdenv/setup || exit 1 tar zxf $src || exit 1 diff --git a/pkgs/development/tools/parsing/sglr/builder.sh b/pkgs/development/tools/parsing/sglr/builder.sh new file mode 100755 index 000000000000..1b0d2d35a1a0 --- /dev/null +++ b/pkgs/development/tools/parsing/sglr/builder.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +buildinputs="$aterm $ptsupport $toolbuslib" +. $stdenv/setup || exit 1 + +tar zxf $src || exit 1 +cd sglr-* || 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/sglr/sglr-3.10.2.nix b/pkgs/development/tools/parsing/sglr/sglr-3.10.2.nix new file mode 100644 index 000000000000..fdce971e8de6 --- /dev/null +++ b/pkgs/development/tools/parsing/sglr/sglr-3.10.2.nix @@ -0,0 +1,13 @@ +{stdenv, fetchurl, aterm, toolbuslib, ptsupport}: derivation { + name = "sglr-3.10.2"; + system = stdenv.system; + builder = ./builder.sh; + src = fetchurl { + url = http://www.cwi.nl/projects/MetaEnv/sglr/sglr-3.10.2.tar.gz; + md5 = "39aa609be84115d7ddc56a6c74b792b7"; + }; + stdenv = stdenv; + aterm = aterm; + ptsupport = ptsupport; + toolbuslib = toolbuslib; +} diff --git a/pkgs/development/tools/parsing/toolbuslib/builder.sh b/pkgs/development/tools/parsing/toolbuslib/builder.sh index 6cf08490ae8b..bb5e4dc0c3a4 100755 --- a/pkgs/development/tools/parsing/toolbuslib/builder.sh +++ b/pkgs/development/tools/parsing/toolbuslib/builder.sh @@ -1,6 +1,6 @@ #! /bin/sh -buildinputs="$aterm $getopt" +buildinputs="$aterm" . $stdenv/setup || exit 1 tar zxf $src || exit 1 diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index 3f14709817bf..9f9aa4cd0df3 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -261,6 +261,14 @@ toolbuslib = toolbuslib_0_5_1; }; + 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; + }; + strategoxt = (import ../development/compilers/strategoxt) { fetchurl = fetchurl; stdenv = stdenv; -- cgit 1.4.1