mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 19:15:39 +00:00
7c02d7eb0b
svn path=/nixpkgs/trunk/; revision=17024
36 lines
979 B
Bash
36 lines
979 B
Bash
source $stdenv/setup
|
|
|
|
buildPhase() {
|
|
true
|
|
}
|
|
|
|
installPhase() {
|
|
substituteInPlace install.sh --replace /bin/pwd pwd
|
|
|
|
# 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
|
|
|
|
[ -z ${system##*64*} ] && suf=64
|
|
|
|
find $out -type f | while read f; do
|
|
echo testing "$f"
|
|
# patch all executables
|
|
if readelf -h "$f" | grep 'EXEC (Executable file)' &> /dev/null; then
|
|
echo "patching $f <<"
|
|
patchelf \
|
|
--set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
|
|
--set-rpath "$libPath" \
|
|
"$f"
|
|
fi
|
|
done
|
|
|
|
# Substitute pwd as late as possible so that the md5 checksum check of opera passes.
|
|
substituteInPlace $out/bin/opera --replace /bin/pwd pwd
|
|
|
|
ensureDir $out/share/applications
|
|
cp $desktopItem/share/applications/* $out/share/applications
|
|
}
|
|
|
|
genericBuild
|