nixpkgs/pkgs/development/compilers/jdk/jdk6-linux.nix
Martin Bravenboer 6892b99bf6 Update of jdk and jre to jdk-distros, based on Distributor License for Java.
D    pkgs/development/interpreters/jre

Obsolete. jdk and jre are now build by the same expression.

D    pkgs/development/compilers/blackdown

Obsolete. jdk is now downloadable.

D    pkgs/development/compilers/jdk/jdk5-sun-linux.nix

Obsolete

A    pkgs/development/compilers/jdk/dlj-bundle-builder.sh

Build for DLJ bundles.

M    pkgs/top-level/all-packages.nix

Dropped blackdown and ant based on blackdown.

A    pkgs/development/compilers/jdk/jdk6-construct.sh

Copy of DLJ construct script to fix problem with jdk6 bundles.

A    pkgs/development/compilers/jdk/jdk6-linux.nix

New main Nix expression for jdk and jre. Supports mozillaPlugin.

A    pkgs/development/compilers/jdk/dlj-bundle-builder.sh

Include path to libjli in rpath.


svn path=/nixpkgs/trunk/; revision=8186
2007-03-05 17:13:53 +00:00

45 lines
1,002 B
Nix

{ swingSupport ? true
, stdenv
, fetchurl
, unzip
, libX11 ? null
, libXext ? null
, installjdk ? true
}:
/**
* @todo Support x86_64-linux.
*/
assert stdenv.system == "i686-linux";
assert swingSupport -> libX11 != null && libXext != null;
(stdenv.mkDerivation {
name =
if installjdk then "jdk-1.6.0" else "jre-1.6.0";
src =
fetchurl {
url = http://download.java.net/dlj/binaries/jdk-6-dlj-linux-i586.bin;
sha256 = "0rw48124fdc5rhafj6qzrysb4w823jbn3awxgn07kcy1nvnrhkqw";
};
builder = ./dlj-bundle-builder.sh;
/**
* If jdk5 is added, make sure to use the original construct script.
* This copy removes references to kinit, klist, ktab, which seem to be
* gone in jdk.
*/
construct = ./jdk6-construct.sh;
inherit installjdk;
buildInputs = [unzip];
libraries =
(if swingSupport then [libX11 libXext] else []);
} // {
inherit swingSupport;
} // {
mozillaPlugin =
if installjdk then "jre/plugin/i386/ns7" else "/plugin/i386/ns7";
}
)