6892b99bf6
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
36 lines
703 B
Bash
36 lines
703 B
Bash
source $stdenv/setup
|
|
sh ${src} --accept-license
|
|
|
|
if test -z "$installjdk"; then
|
|
sh ${construct} . tmp-linux-jdk tmp-linux-jre
|
|
ensureDir $out
|
|
cp -R tmp-linux-jre/* $out
|
|
else
|
|
sh ${construct} . $out tmp-linux-jre
|
|
fi
|
|
|
|
echo "Removing files at top level"
|
|
for file in $out/*
|
|
do
|
|
if test -f $file ; then
|
|
rm $file
|
|
fi
|
|
done
|
|
rm -rf $out/docs
|
|
|
|
# Set the dynamic linker.
|
|
rpath=
|
|
for i in $libraries; do
|
|
rpath=$rpath${rpath:+:}$i/lib
|
|
done
|
|
|
|
if test -z "$installjdk"; then
|
|
rpath=${rpath:+:}$out/lib/i386/jli
|
|
else
|
|
rpath=${rpath:+:}$out/jre/lib/i386/jli
|
|
fi
|
|
|
|
find $out -type f -perm +100 \
|
|
-exec patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
|
|
--set-rpath "$rpath" {} \;
|