Merge pull request #7745 from obadz/mono

mono 3.12.1 -> 4.0.1

lethalman 416ac641 25408d41

+70 -34
+65 -29
pkgs/applications/editors/monodevelop/default.nix
··· 4 4 }: 5 5 6 6 stdenv.mkDerivation rec { 7 - version = "5.7.0.660"; 8 - revision = "6a74f9bdb90d9415b597064d815c9be38b401fee"; 7 + version = "5.9.0.431"; 8 + revision = "7560726734fc7267de2fa9abed2509968deefaa8"; 9 9 name = "monodevelop-${version}"; 10 10 11 - srcs = [ 12 - (fetchurl { 13 - url = "http://download.mono-project.com/sources/monodevelop/${name}.tar.bz2"; 14 - sha256 = "0i9fpjkcys991dhxh02zf9imar3aj6fldk9ymy09vmr10f4d7vbf"; 15 - }) 16 - (fetchurl { 17 - url = "https://launchpadlibrarian.net/153448659/NUnit-2.6.3.zip"; 18 - sha256 = "0vzbziq44zy7fyyhb44mf9ypfi7gvs17rxpg8c9d9lvvdpkshhcp"; 19 - }) 20 - (fetchurl { 21 - url = "https://launchpadlibrarian.net/68057829/NUnit-2.5.10.11092.zip"; 22 - sha256 = "0k5h5bz1p2v3d0w0hpkpbpvdkcszgp8sr9ik498r1bs72w5qlwnc"; 23 - }) 24 - (fetchgit { 25 - url = "https://github.com/mono/nuget-binary.git"; 26 - rev = "ecb27dd49384d70b6c861d28763906f2b25b7c8"; 27 - sha256 = "0dj0yglgwn07xw2crr66vl0vcgnr6m041pynyq0kdd0z8nlp92ki"; 28 - }) 29 - ]; 11 + src = fetchurl { 12 + url = "http://download.mono-project.com/sources/monodevelop/${name}.tar.bz2"; 13 + sha256 = "1bgqvlfi6pilj2zxsviqilh63qq98wsijqdiqwpkqchcw741zlyn"; 14 + }; 15 + 16 + srcNugetBinary = fetchgit { 17 + url = "https://github.com/mono/nuget-binary.git"; 18 + rev = "da1f2102f8172df6f7a1370a4998e3f88b91c047"; 19 + sha256 = "1hbnckc4gvqkknf8gh1k7iwqb4vdzifdjd19i60fnczly5v8m1c3"; 20 + }; 21 + 22 + srcNUnit = fetchurl { 23 + url = "https://www.nuget.org/api/v2/package/NUnit/2.6.3"; 24 + sha256 = "0bb16i4ggwz32wkxsh485wf014cqqzhbyx0b3wbpmqjw7p4canph"; 25 + }; 30 26 31 - sourceRoot = "monodevelop-5.7"; 27 + srcNUnitRunners = fetchurl { 28 + url = "https://www.nuget.org/api/v2/package/NUnit.Runners/2.6.3"; 29 + sha256 = "0qwx1i9lxkp9pijj2bsczzgsamz651hngkxraqjap1v4m7d09a3b"; 30 + }; 31 + 32 + srcNUnit2510 = fetchurl { 33 + url = "http://launchpad.net/nunitv2/2.5/2.5.10/+download/NUnit-2.5.10.11092.zip"; 34 + sha256 = "0k5h5bz1p2v3d0w0hpkpbpvdkcszgp8sr9ik498r1bs72w5qlwnc"; 35 + }; 36 + 37 + srcNugetSystemWebMvcExtensions = fetchurl { 38 + url = https://www.nuget.org/api/v2/package/System.Web.Mvc.Extensions.Mvc.4/1.0.9; 39 + sha256 = "19wi662m8primpimzifv8k560m6ymm73z0mf1r8ixl0xqag1hx6j"; 40 + }; 41 + 42 + srcNugetMicrosoftAspNetMvc = fetchurl { 43 + url = https://www.nuget.org/api/v2/package/Microsoft.AspNet.Mvc/5.2.2; 44 + sha256 = "1jwfmz42kw2yb1g2hgp2h34fc4wx6s8z71da3mw5i4ivs25w9n2b"; 45 + }; 46 + 47 + srcNugetMicrosoftAspNetRazor = fetchurl { 48 + url = https://www.nuget.org/api/v2/package/Microsoft.AspNet.Razor/3.2.2; 49 + sha256 = "1db3apn4vzz1bx6q5fyv6nyx0drz095xgazqbw60qnhfs7z45axd"; 50 + }; 51 + 52 + srcNugetMicrosoftAspNetWebPages = fetchurl { 53 + url = https://www.nuget.org/api/v2/package/Microsoft.AspNet.WebPages/3.2.2; 54 + sha256 = "17fwb5yj165sql80i47zirjnm0gr4n8ypz408mz7p8a1n40r4i5l"; 55 + }; 56 + 57 + srcNugetMicrosoftWebInfrastructure = fetchurl { 58 + url = https://www.nuget.org/api/v2/package/Microsoft.Web.Infrastructure/1.0.0.0; 59 + sha256 = "1mxl9dri5729d0jl84gkpqifqf4xzb6aw1rzcfh6l0r24bix9afn"; 60 + }; 32 61 33 62 postPatch = '' 34 63 # From https://bugzilla.xamarin.com/show_bug.cgi?id=23696#c19 35 64 36 65 # it seems parts of MonoDevelop 5.2+ need NUnit 2.6.4, which isn't included 37 66 # (?), so download it and put it in the right place in the tree 38 - mkdir -v -p packages/NUnit.2.6.3/lib 39 - cp -vfR ../NUnit-2.6.3/bin/framework/* packages/NUnit.2.6.3/lib 40 - mkdir -v -p packages/NUnit.Runners.2.6.3/tools/lib 41 - cp -vfR ../NUnit-2.6.3/bin/lib/* packages/NUnit.Runners.2.6.3/tools/lib 67 + mkdir packages 68 + unzip ${srcNUnit} -d packages/NUnit.2.6.3 69 + unzip ${srcNUnitRunners} -d packages/NUnit.Runners.2.6.3 42 70 43 71 # cecil needs NUnit 2.5.10 - this is also missing from the tar 44 - cp -vfR ../NUnit-2.5.10.11092/bin/net-2.0/framework/* external/cecil/Test/libs/nunit-2.5.10 72 + unzip -j ${srcNUnit2510} -d external/cecil/Test/libs/nunit-2.5.10 NUnit-2.5.10.11092/bin/net-2.0/framework/\* 45 73 46 74 # the tar doesn't include the nuget binary, so grab it from github and copy it 47 75 # into the right place 48 - cp -vfR ../nuget-binary-*/* external/nuget-binary/ 49 - ''; 76 + cp -vfR ${srcNugetBinary}/* external/nuget-binary/ 77 + 78 + # AspNet plugin requires these packages 79 + unzip ${srcNugetSystemWebMvcExtensions} -d packages/System.Web.Mvc.Extensions.Mvc.4.1.0.9 80 + unzip ${srcNugetMicrosoftAspNetMvc} -d packages/Microsoft.AspNet.Mvc.5.2.2 81 + unzip ${srcNugetMicrosoftAspNetRazor} -d packages/Microsoft.AspNet.Razor.3.2.2 82 + unzip ${srcNugetMicrosoftAspNetWebPages} -d packages/Microsoft.AspNet.WebPages.3.2.2 83 + unzip ${srcNugetMicrosoftWebInfrastructure} -d packages/Microsoft.Web.Infrastructure.1.0.0.0 84 + ''; 50 85 51 86 buildInputs = [ 52 87 autoconf automake pkgconfig shared_mime_info intltool ··· 54 89 ]; 55 90 56 91 preConfigure = "patchShebangs ./configure"; 92 + 57 93 preBuild = '' 58 94 cat > ./buildinfo <<EOF 59 95 Release ID: ${version}
+5 -5
pkgs/development/compilers/mono/default.nix
··· 6 6 in 7 7 stdenv.mkDerivation rec { 8 8 name = "mono-${version}"; 9 - version = "3.12.1"; 9 + version = "4.0.1"; 10 10 src = fetchurl { 11 11 url = "http://download.mono-project.com/sources/mono/${name}.tar.bz2"; 12 - sha256 = "03dn68vignknzxy1rx75p16qx1ild27hixgvr5mw0j19mx9z332x"; 12 + sha256 = "1kjv1zhcmd2qfr89vkaas6541n5jfzisn3y030l6lg6lp3ria7zz"; 13 13 }; 14 14 15 15 buildInputs = [bison pkgconfig glib gettext perl libgdiplus libX11 ncurses zlib]; ··· 40 40 substituteInPlace mono/mini/aot-compiler.c --replace "llvm_path = g_strdup (\"\")" "llvm_path = g_strdup (\"${llvm}/bin/\")" 41 41 ''; 42 42 43 - #Fix mono DLLMap so it can find libX11 and gdiplus to run winforms apps 44 - #Other items in the DLLMap may need to be pointed to their store locations, I don't think this is exhaustive 45 - #http://www.mono-project.com/Config_DllMap 43 + # Fix mono DLLMap so it can find libX11 and gdiplus to run winforms apps 44 + # Other items in the DLLMap may need to be pointed to their store locations, I don't think this is exhaustive 45 + # http://www.mono-project.com/Config_DllMap 46 46 postBuild = '' 47 47 find . -name 'config' -type f | while read i; do 48 48 sed -i "s@libX11.so.6@${libX11}/lib/libX11.so.6@g" $i