nixpkgs/pkgs/development/compilers/mono/default.nix
Ludovic Courtès 9e16b812e0 Mono: Don't strip binaries.
svn path=/nixpkgs/trunk/; revision=20708
2010-03-17 13:56:40 +00:00

24 lines
648 B
Nix

{stdenv, fetchurl, bison, pkgconfig, glib, gettext, perl}:
stdenv.mkDerivation {
name = "mono-2.4.2.1";
src = fetchurl {
url = http://ftp.novell.com/pub/mono/sources/mono/mono-2.4.2.1.tar.bz2;
sha256 = "0cbg29fz5xnyjmznwzsmaxrr0cxqisyxk7jx7m56p3zzr379f0f5";
};
buildInputs = [bison pkgconfig glib gettext perl];
propagatedBuildInputs = [glib];
NIX_LDFLAGS = "-lgcc_s" ;
# 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;
preBuild = "
makeFlagsArray=(INSTALL=`type -tp install`)
patchShebangs ./
";
}