* Set the MOZILLA_FIVE_HOME variable to point to Firefox so that
MonoDevelop can browse web pages. (Maybe this shouldn't be done in MonoDevelop but in a higher-level wrapper.) svn path=/nixpkgs/trunk/; revision=2360
This commit is contained in:
parent
6b25f34d77
commit
bf1db9d2ab
|
@ -10,16 +10,20 @@ postInstall() {
|
||||||
mv $out/bin $out/bin-orig
|
mv $out/bin $out/bin-orig
|
||||||
mkdir $out/bin
|
mkdir $out/bin
|
||||||
|
|
||||||
|
moz=$(ls $mozilla/lib/*/libgtkembedmoz.so)
|
||||||
|
|
||||||
for i in $out/bin-orig/*; do
|
for i in $out/bin-orig/*; do
|
||||||
echo "wrapping $(basename $i)"
|
echo "wrapping $(basename $i)"
|
||||||
# !!! TODO: figure out the MONO_GAC_PREFIX automatically
|
# !!! TODO: figure out the MONO_GAC_PREFIX automatically
|
||||||
makeWrapper "$i" "$out/bin/$(basename $i)" \
|
makeWrapper "$i" "$out/bin/$(basename $i)" \
|
||||||
|
--suffix PATH ':' "$(dirname $(type -p mono))" \
|
||||||
--suffix PATH ':' "$(dirname $(type -p mono))" \
|
--suffix PATH ':' "$(dirname $(type -p mono))" \
|
||||||
--suffix LD_LIBRARY_PATH ':' "$gtksharp/lib" \
|
--suffix LD_LIBRARY_PATH ':' "$gtksharp/lib" \
|
||||||
--suffix MONO_GAC_PREFIX ':' "$gtksharp" \
|
--suffix MONO_GAC_PREFIX ':' "$gtksharp" \
|
||||||
--suffix MONO_GAC_PREFIX ':' "$gtkmozembedsharp" \
|
--suffix MONO_GAC_PREFIX ':' "$gtkmozembedsharp" \
|
||||||
--suffix MONO_GAC_PREFIX ':' "$gtksourceviewsharp" \
|
--suffix MONO_GAC_PREFIX ':' "$gtksourceviewsharp" \
|
||||||
--suffix MONO_GAC_PREFIX ':' "$monodoc"
|
--suffix MONO_GAC_PREFIX ':' "$monodoc" \
|
||||||
|
--set MOZILLA_FIVE_HOME "$(dirname $moz)"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
, gtkmozembedsharp, monodoc
|
, gtkmozembedsharp, monodoc
|
||||||
, perl, perlXMLParser, pkgconfig
|
, perl, perlXMLParser, pkgconfig
|
||||||
, glib, gtk, gconf, gnomevfs, libbonobo, libglade, libgnome
|
, glib, gtk, gconf, gnomevfs, libbonobo, libglade, libgnome
|
||||||
|
, mozilla
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
|
@ -23,5 +24,6 @@ stdenv.mkDerivation {
|
||||||
gtkmozembedsharp monodoc
|
gtkmozembedsharp monodoc
|
||||||
];
|
];
|
||||||
|
|
||||||
inherit perlXMLParser monodoc gtksharp gtkmozembedsharp gtksourceviewsharp;
|
inherit perlXMLParser mozilla monodoc
|
||||||
|
gtksharp gtkmozembedsharp gtksourceviewsharp;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1144,6 +1144,7 @@ rec {
|
||||||
inherit fetchurl stdenv file mono gtksourceviewsharp
|
inherit fetchurl stdenv file mono gtksourceviewsharp
|
||||||
gtkmozembedsharp monodoc perl perlXMLParser pkgconfig;
|
gtkmozembedsharp monodoc perl perlXMLParser pkgconfig;
|
||||||
inherit (gnome) gnomevfs libbonobo libglade libgnome gconf glib gtk;
|
inherit (gnome) gnomevfs libbonobo libglade libgnome gconf glib gtk;
|
||||||
|
mozilla = firefox;
|
||||||
gtksharp = gtksharp2;
|
gtksharp = gtksharp2;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue