blob: 66a3388bc88d022254f01b8d38837b46b52b29a0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
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
|