summary refs log tree commit diff
path: root/pkgs/applications/networking/browsers/opera/builder.sh
blob: 59c0bf2cb606fab274523cfa39968d39a3ec07c2 (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
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
}

genericBuild