diff --git a/pkgs/development/compilers/mono/default.nix b/pkgs/development/compilers/mono/default.nix index 34e12fff18d1..fbbaf72fe7d9 100644 --- a/pkgs/development/compilers/mono/default.nix +++ b/pkgs/development/compilers/mono/default.nix @@ -12,6 +12,10 @@ stdenv.mkDerivation { 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 ./