From 362cba8ada1e32a99dcd3dee7f1969982c31ab10 Mon Sep 17 00:00:00 2001 From: Martin Bravenboer Date: Thu, 22 Jan 2004 18:57:34 +0000 Subject: [PATCH] Added pt-support 1.0 svn path=/nixpkgs/trunk/; revision=706 --- .../development/tools/parsing/pt-support/builder.sh | 9 +++++++++ .../tools/parsing/pt-support/pt-support-1.0.nix | 12 ++++++++++++ pkgs/system/all-packages-generic.nix | 13 ++++++++++--- 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100755 pkgs/development/tools/parsing/pt-support/builder.sh create mode 100644 pkgs/development/tools/parsing/pt-support/pt-support-1.0.nix diff --git a/pkgs/development/tools/parsing/pt-support/builder.sh b/pkgs/development/tools/parsing/pt-support/builder.sh new file mode 100755 index 000000000000..475cf2d5c6fe --- /dev/null +++ b/pkgs/development/tools/parsing/pt-support/builder.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +buildinputs="$aterm $getopt $toolbuslib" +. $stdenv/setup || exit 1 + +tar zxf $src || exit 1 +cd pt-support-* || exit 1 +./configure --prefix=$out --with-aterm=$aterm --with-toolbuslib=$toolbuslib || exit 1 +make install || exit 1 diff --git a/pkgs/development/tools/parsing/pt-support/pt-support-1.0.nix b/pkgs/development/tools/parsing/pt-support/pt-support-1.0.nix new file mode 100644 index 000000000000..66ca31566da8 --- /dev/null +++ b/pkgs/development/tools/parsing/pt-support/pt-support-1.0.nix @@ -0,0 +1,12 @@ +{stdenv, fetchurl, aterm, toolbuslib}: derivation { + name = "pt-support-1.0"; + system = stdenv.system; + builder = ./builder.sh; + src = fetchurl { + url = http://www.cwi.nl/projects/MetaEnv/pt-support/pt-support-1.0.tar.gz; + md5 = "cc96dc2bfbaf3f218dfe9a0b8bb4d801"; + }; + stdenv = stdenv; + aterm = aterm; + toolbuslib = toolbuslib; +} diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index d6b7c24132ef..3f14709817bf 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -236,7 +236,7 @@ stdenv = stdenv; }; - aterm205 = (import ../development/libraries/aterm/aterm-2.0.5.nix) { + aterm_2_0_5 = (import ../development/libraries/aterm/aterm-2.0.5.nix) { fetchurl = fetchurl; stdenv = stdenv; }; @@ -248,10 +248,17 @@ getopt = getopt; }; - toolbuslib051 = (import ../development/tools/parsing/toolbuslib/toolbuslib-0.5.1.nix) { + toolbuslib_0_5_1 = (import ../development/tools/parsing/toolbuslib/toolbuslib-0.5.1.nix) { fetchurl = fetchurl; stdenv = stdenv; - aterm = aterm205; + aterm = aterm_2_0_5; + }; + + pt_support_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; }; strategoxt = (import ../development/compilers/strategoxt) {