From f61c9a2e73445cd7d49de192d66b2dcb6102b816 Mon Sep 17 00:00:00 2001 From: Martin Bravenboer Date: Mon, 9 Aug 2004 20:07:53 +0000 Subject: [PATCH] Jakarta Regexp implementation svn path=/nixpkgs/trunk/; revision=1252 --- .../libraries/java/jakarta-regexp/default.nix | 18 ++++++++++++++++++ .../java/jakarta-regexp/java-bin-builder.sh | 6 ++++++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/development/libraries/java/jakarta-regexp/default.nix create mode 100755 pkgs/development/libraries/java/jakarta-regexp/java-bin-builder.sh diff --git a/pkgs/development/libraries/java/jakarta-regexp/default.nix b/pkgs/development/libraries/java/jakarta-regexp/default.nix new file mode 100644 index 000000000000..fc510adaefde --- /dev/null +++ b/pkgs/development/libraries/java/jakarta-regexp/default.nix @@ -0,0 +1,18 @@ +{stdenv, fetchurl}: + +# I want some provides mechanism for jar files. These +# jars can then be added to the CLASSPATH by a dependent package. + +stdenv.mkDerivation { + name = "jakarta-regexp-1.3"; + builder = ./java-bin-builder.sh; + + src = fetchurl { + url = http://apache.cs.uu.nl/dist/jakarta/regexp/binaries/jakarta-regexp-1.3.tar.gz; + md5 = "4322f82bea908ca4a7db270f7fa4850d"; + }; + + jars = ["jakarta-regexp-1.3.jar"]; + + buildInputs = [stdenv]; +} diff --git a/pkgs/development/libraries/java/jakarta-regexp/java-bin-builder.sh b/pkgs/development/libraries/java/jakarta-regexp/java-bin-builder.sh new file mode 100755 index 000000000000..1d0a5ab22fb0 --- /dev/null +++ b/pkgs/development/libraries/java/jakarta-regexp/java-bin-builder.sh @@ -0,0 +1,6 @@ +. $stdenv/setup + +tar zxvf $src +cd jakarta-regexp-1.3 +mkdir -p $out/share/java/ +cp jakarta-regexp-1.3.jar $out/share/java/