From 8853b55a2ef44e5646788793696faab0913933f9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 8 Mar 2005 14:39:00 +0000 Subject: * 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 --- pkgs/applications/editors/monodoc/builder.sh | 21 +++++++++++++++++++++ pkgs/applications/editors/monodoc/default.nix | 5 +++++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/applications/editors/monodoc/builder.sh diff --git a/pkgs/applications/editors/monodoc/builder.sh b/pkgs/applications/editors/monodoc/builder.sh new file mode 100644 index 0000000000000..cce1c983f838d --- /dev/null +++ b/pkgs/applications/editors/monodoc/builder.sh @@ -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 + + diff --git a/pkgs/applications/editors/monodoc/default.nix b/pkgs/applications/editors/monodoc/default.nix index e37b08af67d4f..5f17d6ebd53f9 100644 --- a/pkgs/applications/editors/monodoc/default.nix +++ b/pkgs/applications/editors/monodoc/default.nix @@ -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; } -- cgit 1.4.1