summary refs log tree commit diff
path: root/pkgs/xtc
diff options
context:
space:
mode:
authorEelco Visser <visser@acm.org>2003-08-18 20:56:59 +0000
committerEelco Visser <visser@acm.org>2003-08-18 20:56:59 +0000
commit5c09abea7d63c9864b8b4c261837826c531bbf4a (patch)
treea459f1073f82cdf41d0a5d5e954988614c815ffd /pkgs/xtc
parent397901e36f9d066ae791f67e18a60860cf94c69f (diff)
* pkgs/strategoxt/pkg-build.sh: generic build script for packages
with the standard untar; bootstrap; configure; make; make install
interface.  The script is parameterized with arguments for
configure. That is, all arguments are passed verbatim to
configure.

* asfix-tools, gpp, sc, srts, stratego-front, xtc: Fix expressions
and (trivial) build script for basic strategoxt packages. All
packages are abstracted on subversion revision.

svn path=/nixpkgs/trunk/; revision=319
Diffstat (limited to 'pkgs/xtc')
-rwxr-xr-xpkgs/xtc/xtc-build.sh13
-rwxr-xr-xpkgs/xtc/xtc.fix9
2 files changed, 4 insertions, 18 deletions
diff --git a/pkgs/xtc/xtc-build.sh b/pkgs/xtc/xtc-build.sh
index ef70164c305d3..89d2e1a319bc2 100755
--- a/pkgs/xtc/xtc-build.sh
+++ b/pkgs/xtc/xtc-build.sh
@@ -1,14 +1,3 @@
 #! /bin/sh
-
 set -e
-
-. $stdenv/setup 
-
-export PATH=$autoxt/bin:$PATH
-
-cp -r $src $name
-cd $name
-./bootstrap
-./configure --prefix=$out --with-aterm=$aterm --with-srts=$srts
-make
-make install
+$pkgbuild --with-aterm=$aterm --with-srts=$srts
diff --git a/pkgs/xtc/xtc.fix b/pkgs/xtc/xtc.fix
index e7b54871d9c3d..fbe1933906f35 100755
--- a/pkgs/xtc/xtc.fix
+++ b/pkgs/xtc/xtc.fix
@@ -3,13 +3,10 @@ Function(["rev"],
     [ ("name", "xtc")
 
     , ("build", Relative("xtc/xtc-build.sh"))
+    , ("pkgbuild", Relative("strategoxt/pkg-build.sh"))
 
-    , ("src", App(IncludeFix("fetchsvn/fetchsvn.fix"),
-        [ ("url",  "http://losser.st-lab.cs.uu.nl:12080/repos/StrategoXT/trunk/StrategoXT/xtc")
-        , ("name", "xtc")
-        , ("rev",  Var("rev"))
-        ])
-      )
+    , ("src", App(IncludeFix("strategoxt/fetchsvn.fix"),
+                  [ ("name", "xtc"), ("rev",  Var("rev"))]))
 
     , ("stdenv", IncludeFix("stdenv/stdenv.fix"))
     , ("aterm",  IncludeFix("aterm/aterm.fix"))