mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 06:01:15 +00:00
Upgrade
svn path=/nixpkgs/trunk/; revision=1168
This commit is contained in:
parent
ad8c419f15
commit
c0b5981c45
|
@ -1,13 +1,25 @@
|
|||
#! /bin/sh
|
||||
|
||||
. $stdenv/setup || exit 1
|
||||
version=j2re1.4.2_03
|
||||
|
||||
cp $src $version.bin || exit 1
|
||||
chmod u+x $version.bin || exit 1
|
||||
|
||||
alias more=cat
|
||||
|
||||
echo "Unpacking J2RE"
|
||||
yes yes | ./$version.bin || exit 1
|
||||
|
||||
mkdir $out || exit 1
|
||||
|
||||
echo "Moving sources to the right location"
|
||||
mv $version/* $out/ || exit 1
|
||||
|
||||
echo "Removing files at top level"
|
||||
for file in $out/*
|
||||
do
|
||||
if test -f $file ; then
|
||||
rm $file
|
||||
fi
|
||||
done
|
||||
rm -rf $out/docs
|
||||
|
|
|
@ -2,14 +2,12 @@
|
|||
|
||||
assert stdenv.system == "i686-linux";
|
||||
|
||||
|
||||
derivation {
|
||||
stdenv.mkDerivation {
|
||||
name = "j2re-1.4.2";
|
||||
system = stdenv.system;
|
||||
version = "j2re1.4.2_04";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = http://java.sun.com/webapps/download/AutoDL?BundleId=9500;
|
||||
md5 = "b4aae3fcda73d976bd6ae6349b36a90c";
|
||||
url = http://java.sun.com/webapps/download/AutoDL?BundleId=9562;
|
||||
md5 = "57e31ffc32a2956e6140ceda8aa86e4e";
|
||||
};
|
||||
stdenv = stdenv;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue