Added backdown, which is a downloadable J2SDK. However, the builder still has to use 'yes yes' and more = cat.

svn path=/nixpkgs/trunk/; revision=1323
This commit is contained in:
Martin Bravenboer 2004-08-24 09:12:01 +00:00
parent 38f56c36dc
commit 5f15317a59
4 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,13 @@
{stdenv, fetchurl}:
assert stdenv.system == "i686-linux";
stdenv.mkDerivation {
name = "blackdown-1.4.2";
dirname = "j2sdk1.4.2";
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.nluug.nl/pub/os/Linux/java/jdk/JDK-1.4.2/i386/rc1/j2sdk-1.4.2-rc1-linux-i586-gcc3.2.bin;
md5 = "52ff3a059845ee8487faeaa7b0c157c8";
};
}

View File

@ -0,0 +1,21 @@
set -e
. $stdenv/setup
cp $src .
bin=`basename $src`
chmod u+x $bin
alias more=cat
yes yes | ./$bin
mkdir $out
mv $dirname/* $out/
# 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,9 @@
{stdenv, fetchurl}:
if stdenv.system == "i686-linux"
then
(import ./blackdown-i686.nix) {
inherit stdenv fetchurl;
}
else
false

View File

@ -286,6 +286,10 @@ rec {
inherit fetchurl stdenv;
};
blackdown = (import ../development/compilers/blackdown) {
inherit fetchurl stdenv;
};
j2sdk = (import ../development/compilers/j2sdk) {
inherit fetchurl stdenv;
};