summary refs log tree commit diff
path: root/pkgs/applications/editors/monodoc/builder.sh
blob: bcea7a7a89afd34e3c1846b4dc991003f5957808 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
source $stdenv/setup
source $makeWrapper

postInstall() {
    mv $out/bin $out/bin-orig
    mkdir $out/bin

    for i in $out/bin-orig/*; do
        echo "wrapping $(basename $i)"
        # !!! TODO: figure out the MONO_GAC_PREFIX automatically
        makeWrapper "$i" "$out/bin/$(basename $i)" \
            --suffix PATH ':' "$(dirname $(type -p mono))" \
            --suffix MONO_GAC_PREFIX ':' "$gtksharp" \
            --suffix MONO_GAC_PREFIX ':' "$out"
    done
}

genericBuild