16 , debug ? config.coreclr.debug or false
19 stdenv.mkDerivation rec {
23 src = fetchFromGitHub {
27 sha256 = "0pzkrfgqywhpijbx7j1v4lxa6270h6whymb64jdkp7yj56ipqh2n";
33 url = "https://github.com/dotnet/coreclr/commit/a8f83b615708c529b112898e7d2fbc3f618b26ee.patch";
34 sha256 = "047ph5gip4z2h7liwdxsmpnlaq0sd3hliaw4nyqjp647m80g3ffq";
38 url = "https://github.com/dotnet/coreclr/commit/9b22e1a767dee38f351001c5601f56d78766a43e.patch";
39 sha256 = "1w1lxw5ryvhq8m5m0kv880c4bh6y9xdgypkr76sqbh3v568yghzg";
64 # override to avoid cmake running
68 BuildArch = if stdenv.is64bit then "x64" else "x86";
69 BuildType = if debug then "Debug" else "Release";
78 # disable -Werror which can potentially breaks with every compiler upgrade
79 ./build.sh $BuildArch $BuildType cmakeargs "-DCLR_CMAKE_WARNINGS_ARE_ERRORS=OFF"
85 mkdir -p $out/share/dotnet $out/bin
86 cp -r bin/Product/Linux.$BuildArch.$BuildType/* $out/share/dotnet
87 for cmd in coreconsole corerun createdump crossgen ilasm ildasm mcs superpmi; do
88 ln -s $out/share/dotnet/$cmd $out/bin/$cmd
94 homepage = "https://github.com/dotnet/core/";
95 description = ".NET is a general purpose development platform";
96 platforms = [ "x86_64-linux" ];
97 maintainers = with maintainers; [ kuznero ];
98 license = licenses.mit;