nixpkgs/pkgs/applications/editors/monodoc/builder.sh
Eelco Dolstra 8853b55a2e * Generate wrappers to add Mono to PATH and to add Monodoc and GTK# to
the GAC search path.  Unfortunately Mono doesn't yet seem to
  implement the .NET mechanisms for specifying locations for module
  dependencies.

svn path=/nixpkgs/trunk/; revision=2343
2005-03-08 14:39:00 +00:00

22 lines
503 B
Bash

. $stdenv/setup
. $makeWrapper
postInstall=postInstall
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