diff options
author | Martin Bravenboer | 2004-03-11 20:17:51 +0000 |
---|---|---|
committer | Martin Bravenboer | 2004-03-11 20:17:51 +0000 |
commit | ad12abfb3d661962c19a8bc348b2999bae9eb41d (patch) | |
tree | b1b9216713baa4b37f9bc34d50f0a0208ac7dd0b | |
parent | e5fd37f35db872cb5504dc493a8617274f55e698 (diff) |
Added j2sdk 1.5.0 beta. You need to download the file by hand to /tmp
svn path=/nixpkgs/branches/martin2/; revision=831
-rwxr-xr-x | pkgs/development/compilers/j2sdk/builder.sh | 5 | ||||
-rw-r--r-- | pkgs/development/compilers/j2sdk/default-1.5.nix | 10 | ||||
-rw-r--r-- | pkgs/development/compilers/j2sdk/j2sdk-sun-linux.nix | 2 | ||||
-rw-r--r-- | pkgs/development/compilers/j2sdk/j2sdk1.5-sun-linux.nix | 24 | ||||
-rw-r--r-- | pkgs/system/all-packages-generic.nix | 4 |
5 files changed, 42 insertions, 3 deletions
diff --git a/pkgs/development/compilers/j2sdk/builder.sh b/pkgs/development/compilers/j2sdk/builder.sh index 3cf67f8f4cee..b01efbe881e3 100755 --- a/pkgs/development/compilers/j2sdk/builder.sh +++ b/pkgs/development/compilers/j2sdk/builder.sh @@ -1,8 +1,7 @@ #!/bin/sh . $stdenv/setup || exit 1 -version=j2sdk1.4.2_03 -src=$version.bin +src=$filename.bin cp $pathname $src || exit 1 @@ -19,4 +18,4 @@ alias more=cat yes yes | ./$src || exit 1 mkdir $out || exit 1 -mv $version/* $out/ || exit 1 +mv $dirname/* $out/ || exit 1 diff --git a/pkgs/development/compilers/j2sdk/default-1.5.nix b/pkgs/development/compilers/j2sdk/default-1.5.nix new file mode 100644 index 000000000000..c55b6b1830f7 --- /dev/null +++ b/pkgs/development/compilers/j2sdk/default-1.5.nix @@ -0,0 +1,10 @@ +{stdenv, fetchurl}: + +if stdenv.system == "i686-linux" + then + (import ./j2sdk1.5-sun-linux.nix) { + stdenv = stdenv; + fetchurl = fetchurl; + } + else + false diff --git a/pkgs/development/compilers/j2sdk/j2sdk-sun-linux.nix b/pkgs/development/compilers/j2sdk/j2sdk-sun-linux.nix index 6e3d8eb98e7f..795d43aab0f6 100644 --- a/pkgs/development/compilers/j2sdk/j2sdk-sun-linux.nix +++ b/pkgs/development/compilers/j2sdk/j2sdk-sun-linux.nix @@ -14,6 +14,8 @@ assert stdenv.system == "i686-linux"; derivation { name = "j2sdk-1.4.2"; + filename = "j2sdk-1.4.2_03"; + dirname = "j2sdk1.4.2_03"; system = stdenv.system; builder = ./builder.sh; pathname = "/tmp/j2sdk-1_4_2_03-linux-i586.bin"; diff --git a/pkgs/development/compilers/j2sdk/j2sdk1.5-sun-linux.nix b/pkgs/development/compilers/j2sdk/j2sdk1.5-sun-linux.nix new file mode 100644 index 000000000000..b1e3773e89af --- /dev/null +++ b/pkgs/development/compilers/j2sdk/j2sdk1.5-sun-linux.nix @@ -0,0 +1,24 @@ +/** + * This Nix expression requires the user to download the j2sdk + * distribution to /tmp. Please obtain j2sdk-1_5_0-beta-linux-i586.bin + * from java.sun.com by hand and place it in /tmp. Blame Sun, not me. + * + * Note that this is not necessary if someone has already pushed a + * binary. + * + * @author Martin Bravenboer <martin@cs.uu.nl> + */ +{stdenv, fetchurl}: + +assert stdenv.system == "i686-linux"; + +derivation { + name = "j2sdk-1.5.0-beta"; + filename = "j2sdk-1_5_0-beta"; + dirname = "j2sdk1.5.0"; + system = stdenv.system; + builder = ./builder.sh; + pathname = "/tmp/j2sdk-1_5_0-beta-linux-i586.bin"; + md5 = "1e6af0d64563b085ffadec97db365b19"; + stdenv = stdenv; +} diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index 00685c545e0e..dc5c9d6fada6 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -196,6 +196,10 @@ inherit fetchurl stdenv; }; + j2sdk15 = (import ../development/compilers/j2sdk/default-1.5.nix) { + inherit fetchurl stdenv; + }; + strategoxt = (import ../development/compilers/strategoxt) { inherit fetchurl stdenv aterm; sdf = sdf2; |