nixpkgs/pkgs/development/compilers/mono/default.nix
Lluís Batlle i Rossell f4a73e2ddd Updating mono from 2.6 to 2.8
svn path=/nixpkgs/trunk/; revision=24614
2010-11-07 21:25:28 +00:00

29 lines
778 B
Nix

{stdenv, fetchurl, bison, pkgconfig, glib, gettext, perl}:
stdenv.mkDerivation {
name = "mono-2.8";
src = fetchurl {
url = http://ftp.novell.com/pub/mono/sources/mono/mono-2.8.tar.bz2;
sha256 = "04bivxg90mmihkp72sjshl4ijbjcbl9f6hdgm476zy794g5rwd78";
};
buildInputs = [bison pkgconfig glib gettext perl];
propagatedBuildInputs = [glib];
NIX_LDFLAGS = "-lgcc_s" ;
# To overcome the bug https://bugzilla.novell.com/show_bug.cgi?id=644723
dontDisableStatic = true;
# 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;
enableParallelBuilding = true;
preBuild = "
makeFlagsArray=(INSTALL=`type -tp install`)
patchShebangs ./
";
}