Cleaning up the java naming conventions

svn path=/nixpkgs/trunk/; revision=3867
This commit is contained in:
Martin Bravenboer
2005-09-17 23:24:40 +00:00
parent 138959ae38
commit 1122e263ee
5 changed files with 5 additions and 5 deletions

View 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

View 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

View File

@@ -0,0 +1,9 @@
{stdenv, fetchurl}:
if stdenv.system == "i686-linux"
then
(import ./j2sdk-sun-linux.nix) {
inherit stdenv fetchurl;
}
else
false

View 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;
}

View 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;
}