Adding libgdiplus for mono, and making mono reference it.

svn path=/nixpkgs/trunk/; revision=31276
This commit is contained in:
Lluís Batlle i Rossell
2012-01-04 13:55:54 +00:00
parent 8046598a80
commit 25db5f1a9d
3 changed files with 22 additions and 2 deletions
+4 -2
View File
@@ -1,4 +1,4 @@
{stdenv, fetchurl, bison, pkgconfig, glib, gettext, perl}:
{stdenv, fetchurl, bison, pkgconfig, glib, gettext, perl, libgdiplus}:
stdenv.mkDerivation {
name = "mono-2.10.8.1";
@@ -7,7 +7,7 @@ stdenv.mkDerivation {
sha256 = "0h4hdj99qg0nsg5260izwaybs59wysf7y399kffhg43fidpndz0x";
};
buildInputs = [bison pkgconfig glib gettext perl];
buildInputs = [bison pkgconfig glib gettext perl libgdiplus];
propagatedBuildInputs = [glib];
NIX_LDFLAGS = "-lgcc_s" ;
@@ -15,6 +15,8 @@ stdenv.mkDerivation {
# To overcome the bug https://bugzilla.novell.com/show_bug.cgi?id=644723
dontDisableStatic = true;
configureFlags = "--with-libgdiplus=${libgdiplus}/lib/libgdiplus.so";
# Attempt to fix this error when running "mcs --version":
# The file /nix/store/xxx-mono-2.4.2.1/lib/mscorlib.dll is an invalid CIL image
dontStrip = true;