mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
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:
parent
38f56c36dc
commit
5f15317a59
13
pkgs/development/compilers/blackdown/blackdown-i686.nix
Normal file
13
pkgs/development/compilers/blackdown/blackdown-i686.nix
Normal 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";
|
||||
};
|
||||
}
|
21
pkgs/development/compilers/blackdown/builder.sh
Executable file
21
pkgs/development/compilers/blackdown/builder.sh
Executable 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
|
9
pkgs/development/compilers/blackdown/default.nix
Normal file
9
pkgs/development/compilers/blackdown/default.nix
Normal file
@ -0,0 +1,9 @@
|
||||
{stdenv, fetchurl}:
|
||||
|
||||
if stdenv.system == "i686-linux"
|
||||
then
|
||||
(import ./blackdown-i686.nix) {
|
||||
inherit stdenv fetchurl;
|
||||
}
|
||||
else
|
||||
false
|
@ -286,6 +286,10 @@ rec {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
blackdown = (import ../development/compilers/blackdown) {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
j2sdk = (import ../development/compilers/j2sdk) {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user