summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/editors/monodevelop/builder.sh6
-rw-r--r--pkgs/applications/editors/monodevelop/default.nix4
2 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/applications/editors/monodevelop/builder.sh b/pkgs/applications/editors/monodevelop/builder.sh
index bd4b282c7c4..eb42bc54f4c 100644
--- a/pkgs/applications/editors/monodevelop/builder.sh
+++ b/pkgs/applications/editors/monodevelop/builder.sh
@@ -10,16 +10,20 @@ postInstall() {
     mv $out/bin $out/bin-orig
     mkdir $out/bin
 
+    moz=$(ls $mozilla/lib/*/libgtkembedmoz.so)
+
     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 PATH ':' "$(dirname $(type -p mono))" \
             --suffix LD_LIBRARY_PATH ':' "$gtksharp/lib" \
             --suffix MONO_GAC_PREFIX ':' "$gtksharp" \
             --suffix MONO_GAC_PREFIX ':' "$gtkmozembedsharp" \
             --suffix MONO_GAC_PREFIX ':' "$gtksourceviewsharp" \
-            --suffix MONO_GAC_PREFIX ':' "$monodoc"
+            --suffix MONO_GAC_PREFIX ':' "$monodoc" \
+            --set MOZILLA_FIVE_HOME "$(dirname $moz)"
     done
 }
 
diff --git a/pkgs/applications/editors/monodevelop/default.nix b/pkgs/applications/editors/monodevelop/default.nix
index 5ba1aadd609..63a996e1972 100644
--- a/pkgs/applications/editors/monodevelop/default.nix
+++ b/pkgs/applications/editors/monodevelop/default.nix
@@ -2,6 +2,7 @@
 , gtkmozembedsharp, monodoc
 , perl, perlXMLParser, pkgconfig
 , glib, gtk, gconf, gnomevfs, libbonobo, libglade, libgnome
+, mozilla
 }:
 
 stdenv.mkDerivation {
@@ -23,5 +24,6 @@ stdenv.mkDerivation {
     gtkmozembedsharp monodoc
   ];
   
-  inherit perlXMLParser monodoc gtksharp gtkmozembedsharp gtksourceviewsharp;
+  inherit perlXMLParser mozilla monodoc
+    gtksharp gtkmozembedsharp gtksourceviewsharp;
 }