diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2005-03-08 14:39:00 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2005-03-08 14:39:00 +0000 |
commit | 8853b55a2ef44e5646788793696faab0913933f9 (patch) | |
tree | aca2ec2e3a872dba580b99aad02b73076a69e742 | |
parent | acd95ba26efd75b84a8bd0f331d38c8be2579915 (diff) |
* 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
-rw-r--r-- | pkgs/applications/editors/monodoc/builder.sh | 21 | ||||
-rw-r--r-- | pkgs/applications/editors/monodoc/default.nix | 5 |
2 files changed, 26 insertions, 0 deletions
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; } |