Cleaning up the java naming conventions
svn path=/nixpkgs/trunk/; revision=3867
This commit is contained in:
29
pkgs/development/compilers/jdk/builder.sh
Executable file
29
pkgs/development/compilers/jdk/builder.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
|
||||
. $stdenv/setup || exit 1
|
||||
src=$filename.bin
|
||||
|
||||
cp $pathname $src || exit 1
|
||||
|
||||
actual=$(md5sum -b $src | cut -c1-32)
|
||||
if test "$actual" != "$md5"; then
|
||||
echo "hash is $actual, expected $md5"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
chmod u+x $src || exit 1
|
||||
|
||||
alias more=cat
|
||||
|
||||
yes yes | ./$src || exit 1
|
||||
|
||||
mkdir $out || exit 1
|
||||
mv $dirname/* $out/ || exit 1
|
||||
|
||||
# remove crap in the root directory
|
||||
for file in $out/*
|
||||
do
|
||||
if test -f $file ; then
|
||||
rm $file
|
||||
fi
|
||||
done
|
||||
10
pkgs/development/compilers/jdk/default-1.5.nix
Normal file
10
pkgs/development/compilers/jdk/default-1.5.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{stdenv, fetchurl}:
|
||||
|
||||
if stdenv.system == "i686-linux"
|
||||
then
|
||||
(import ./j2sdk1.5-sun-linux.nix) {
|
||||
stdenv = stdenv;
|
||||
fetchurl = fetchurl;
|
||||
}
|
||||
else
|
||||
false
|
||||
9
pkgs/development/compilers/jdk/default.nix
Normal file
9
pkgs/development/compilers/jdk/default.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{stdenv, fetchurl}:
|
||||
|
||||
if stdenv.system == "i686-linux"
|
||||
then
|
||||
(import ./j2sdk-sun-linux.nix) {
|
||||
inherit stdenv fetchurl;
|
||||
}
|
||||
else
|
||||
false
|
||||
24
pkgs/development/compilers/jdk/j2sdk-sun-linux.nix
Normal file
24
pkgs/development/compilers/jdk/j2sdk-sun-linux.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* This Nix expression requires the user to download the j2sdk
|
||||
* distribution to /tmp. Please obtain j2sdk-1_4_2_03-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.4.2";
|
||||
filename = "j2sdk-1.4.2_05";
|
||||
dirname = "j2sdk1.4.2_05";
|
||||
system = stdenv.system;
|
||||
builder = ./builder.sh;
|
||||
pathname = "/tmp/j2sdk-1_4_2_05-linux-i586.bin";
|
||||
md5 = "825ff134f3e370f6e677638d32962082";
|
||||
stdenv = stdenv;
|
||||
}
|
||||
24
pkgs/development/compilers/jdk/j2sdk1.5-sun-linux.nix
Normal file
24
pkgs/development/compilers/jdk/j2sdk1.5-sun-linux.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* This Nix expression requires the user to download the j2sdk
|
||||
* distribution to /tmp. Please obtain j2sdk-1_5_0_05-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 = "jdk-1.5.0";
|
||||
filename = "jdk-1_5_0_05";
|
||||
dirname = "jdk1.5.0_05";
|
||||
system = stdenv.system;
|
||||
builder = ./builder.sh;
|
||||
pathname = "/tmp/jdk-1_5_0_05-linux-i586.bin";
|
||||
md5 = "";
|
||||
stdenv = stdenv;
|
||||
}
|
||||
Reference in New Issue
Block a user