From 009cda1fb2620f0d1f5de02433c88527161de4b8 Mon Sep 17 00:00:00 2001
From: Eelco Visser <visser@acm.org>
Date: Tue, 17 Aug 2004 11:53:31 +0000
Subject: [PATCH] version 0.1 of bibtex-tools

svn path=/nixpkgs/trunk/; revision=1285
---
 pkgs/system/all-packages-generic.nix            |  5 +++++
 pkgs/tools/typesetting/bibtex-tools/builder.sh  |  5 +++++
 pkgs/tools/typesetting/bibtex-tools/default.nix | 13 +++++++++++++
 3 files changed, 23 insertions(+)
 create mode 100644 pkgs/tools/typesetting/bibtex-tools/builder.sh
 create mode 100644 pkgs/tools/typesetting/bibtex-tools/default.nix

diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix
index 9251b2dc5615..f5bcb98cedfd 100644
--- a/pkgs/system/all-packages-generic.nix
+++ b/pkgs/system/all-packages-generic.nix
@@ -315,6 +315,11 @@ rec {
     sdf = sdf_22;
   };
 
+  bibtextools = (import ../tools/typesetting/bibtex-tools) {
+    inherit fetchurl stdenv aterm strategoxt hevea;
+    sdf = sdf_22;
+  };
+
   #strategoxtsvn = (import ../development/compilers/strategoxt/trunk.nix) {
   #  inherit fetchsvn stdenv autoconf automake libtool which aterm;
   #  sdf = sdf_22;
diff --git a/pkgs/tools/typesetting/bibtex-tools/builder.sh b/pkgs/tools/typesetting/bibtex-tools/builder.sh
new file mode 100644
index 000000000000..de8bbaee28fa
--- /dev/null
+++ b/pkgs/tools/typesetting/bibtex-tools/builder.sh
@@ -0,0 +1,5 @@
+. $stdenv/setup
+
+configureFlags="--with-aterm=$aterm --with-sglr=$sglr --with-pgen=$pgen
+ --with-pt-support=$ptsupport --with-asf-library=$asflibrary --with-strategoxt=$strategoxt --with-hevea=$hevea --with-latex=/usr"
+genericBuild
diff --git a/pkgs/tools/typesetting/bibtex-tools/default.nix b/pkgs/tools/typesetting/bibtex-tools/default.nix
new file mode 100644
index 000000000000..79180c429230
--- /dev/null
+++ b/pkgs/tools/typesetting/bibtex-tools/default.nix
@@ -0,0 +1,13 @@
+{stdenv, fetchurl, hevea, strategoxt, aterm, sdf}: 
+
+stdenv.mkDerivation {
+  name = "bibtex-tools-0.1";
+  builder = ./builder.sh;
+  src = fetchurl {
+    url = http://www.cs.uu.nl/~visser/ftp/bibtex-tools-0.1.tar.gz;
+    md5 = "8e3ce277100af6fceec23f5bed4aa9e8";
+  };
+  inherit aterm hevea strategoxt;
+  inherit (sdf) sglr pgen ptsupport asflibrary;
+  buildInputs = [aterm sdf.pgen strategoxt hevea];
+}