mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 12:22:37 +03:00
a5e0e39cdb
This is so that the Unison wrapper can be generated with makeWrapper. * Use makeWrapper as a buildInput everywhere. * Updated BitTorrent, cvs2svn. svn path=/nixpkgs/trunk/; revision=10213
34 lines
840 B
Bash
Executable File
34 lines
840 B
Bash
Executable File
source $stdenv/setup
|
|
|
|
unpackFile $src
|
|
ensureDir $out
|
|
mv eclipse $out/
|
|
|
|
# Set the dynamic linker and RPATH.
|
|
rpath=
|
|
for i in $libraries; do
|
|
rpath=$rpath${rpath:+:}$i/lib
|
|
done
|
|
find $out \( -type f -a -perm +0100 \) \
|
|
-print \
|
|
-exec patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
|
|
--set-rpath "$rpath" {} \;
|
|
|
|
# Make a wrapper script so that the proper JDK is found.
|
|
makeWrapper $out/eclipse/eclipse $out/bin/eclipse \
|
|
--prefix PATH ":" "$jdk/bin" \
|
|
--prefix LD_LIBRARY_PATH ":" "$rpath"
|
|
|
|
ensureDir plugin-working-dir
|
|
workingdir="$(pwd)/plugin-working-dir"
|
|
for plugin in $plugins; do
|
|
if test -e $plugin/install; then
|
|
cd $workingdir
|
|
$plugin/install "$out/eclipse"
|
|
rm -rf $workingdir/*
|
|
else
|
|
# assume that it is a file
|
|
cp $plugin $out/eclipse/plugins
|
|
fi
|
|
done
|