diff options
-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; } |