nixpkgs/pkgs/applications/networking/browsers/opera/builder.sh
Marc Weber 8544d7313f additionally copying the lib/opera/plugin/libnpp.so into the executable
directory to make plugins work and get rid of the missing library warning

svn path=/nixpkgs/trunk/; revision=9244
2007-09-03 15:07:19 +00:00

35 lines
929 B
Bash

source $stdenv/setup
buildPhase=buildPhase
buildPhase() {
true
}
installPhase=installPhase
installPhase() {
# Note: the "no" is because the install scripts asks whether we
# want to install icons in some system-wide directories.
echo no | ./install.sh --prefix=$out
rpath=/no-such-path
for i in $libPath; do
rpath="$rpath:$i/lib"
done
# !!! ugh, should fix this eventually; just make a normal gcc dependency
gcc=$(cat $NIX_GCC/nix-support/orig-gcc)
rpath="$rpath:$gcc/lib"
for i in $out/lib/opera/*/opera $out/lib/opera/plugins/opera*; do
patchelf \
--set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
--set-rpath "$rpath" \
"$i"
done
# opera seems to need libnpp.so in the same path ?
# (search the opera help for libnpp..
cp $out/lib/opera/plugins/libnpp.so $out/lib/opera/9*
}
genericBuild