From a63588689d95f5fe4de726c6faf253d89cf74c91 Mon Sep 17 00:00:00 2001 From: Martin Bravenboer Date: Tue, 14 Mar 2006 18:20:21 +0000 Subject: [PATCH] Added jikespg, an oldskool parser generator svn path=/nixpkgs/trunk/; revision=5038 --- .../tools/parsing/jikespg/builder.sh | 17 +++++++++++++++++ .../tools/parsing/jikespg/default.nix | 10 ++++++++++ pkgs/system/all-packages-generic.nix | 4 ++++ 3 files changed, 31 insertions(+) create mode 100644 pkgs/development/tools/parsing/jikespg/builder.sh create mode 100644 pkgs/development/tools/parsing/jikespg/default.nix diff --git a/pkgs/development/tools/parsing/jikespg/builder.sh b/pkgs/development/tools/parsing/jikespg/builder.sh new file mode 100644 index 000000000000..42fe7fdd6246 --- /dev/null +++ b/pkgs/development/tools/parsing/jikespg/builder.sh @@ -0,0 +1,17 @@ +source $stdenv/setup + +set -e + +configurePhase=configurePhase +configurePhase() { + tar zxvf $src + cd jikespg/src +} + +installPhase=installPhase +installPhase() { + ensureDir $out/bin + cp jikespg $out/bin +} + +genericBuild \ No newline at end of file diff --git a/pkgs/development/tools/parsing/jikespg/default.nix b/pkgs/development/tools/parsing/jikespg/default.nix new file mode 100644 index 000000000000..9fe1207ba224 --- /dev/null +++ b/pkgs/development/tools/parsing/jikespg/default.nix @@ -0,0 +1,10 @@ +{stdenv, fetchurl}: + +stdenv.mkDerivation { + name = "jikespg-1.3"; + builder = ./builder.sh; + src = fetchurl { + url = http://surfnet.dl.sourceforge.net/sourceforge/jikes/jikespg-1.3.tar.gz; + md5 = "eba183713d9ae61a887211be80eeb21f"; + }; +} diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index bfb3acac6c83..53693a3e81a4 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -883,6 +883,10 @@ rec { inherit fetchurl stdenv aterm getopt pkgconfig; }; + jikespg = (import ../development/tools/parsing/jikespg) { + inherit fetchurl stdenv; + }; + expat = (import ../development/libraries/expat) { inherit fetchurl stdenv; };