* 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
This commit is contained in:
Eelco Dolstra 2005-03-08 14:39:00 +00:00
parent acd95ba26e
commit 8853b55a2e
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,21 @@
. $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

View File

@ -3,10 +3,15 @@
stdenv.mkDerivation {
name = "monodoc-1.0.6";
builder = ./builder.sh;
src = fetchurl {
url = http://www.go-mono.com/archive/1.0.6/monodoc-1.0.6.tar.gz;
md5 = "f2fc27e8e4717d90dc7efa2450625693";
};
makeWrapper = ../../../build-support/make-wrapper/make-wrapper.sh;
buildInputs = [mono gtksharp pkgconfig];
inherit gtksharp;
}