mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 23:24:35 +00:00
7689a348c4
builders. These are redundant now. * Inlined some trivial builders. * Removed a few explicit setup-hook creations. This is done automatically now if setupHook is set. * Deleted the initscripts package. NixOS doesn't use it anymore. svn path=/nixpkgs/branches/stdenv-updates/; revision=15276
29 lines
887 B
Bash
29 lines
887 B
Bash
source $stdenv/setup
|
|
source $makeWrapper
|
|
|
|
export MONO_GAC_PREFIX=$monodoc:$gtksharp
|
|
|
|
postInstall() {
|
|
mv $out/bin $out/bin-orig
|
|
mkdir $out/bin
|
|
|
|
moz=$(ls $mozilla/lib/*/libgtkembedmoz.so)
|
|
|
|
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 PATH ':' "$(dirname $(type -p mono))" \
|
|
--suffix LD_LIBRARY_PATH ':' "$gtksharp/lib" \
|
|
--suffix MONO_GAC_PREFIX ':' "$gtksharp" \
|
|
--suffix MONO_GAC_PREFIX ':' "$gtkmozembedsharp" \
|
|
--suffix MONO_GAC_PREFIX ':' "$gtksourceviewsharp" \
|
|
--suffix MONO_GAC_PREFIX ':' "$monodoc" \
|
|
--set MOZILLA_FIVE_HOME "$(dirname $moz)"
|
|
done
|
|
}
|
|
|
|
genericBuild
|
|
|