git.iko.soy/typeable/nixpkgs
on master help sign in
dotnet: package coreclr (from git)
commit30bd03a3e26b24184c7518515161178aafa2bc72 authorobadz <dav-github@odav.org> dateWed 24 Jun 2015, 12:56 (11 years ago) parente1af50c
2 files changed+69
pkgs/development/compilers/coreclr/default.nix+67 pkgs/top-level/all-packages.nix+2
pkgs/development/compilers/coreclr/default.nixnew file+67
@@ -0,0 +1,67 @@
1+{ stdenv
2+, fetchFromGitHub
3+, which
4+, cmake
5+, clang_35
6+, llvmPackages_36
7+, libunwind
8+, gettext
9+, openssl
10+}:
11+
12+stdenv.mkDerivation rec {
13+ name = "coreclr-${version}";
14+ version = "git-" + (builtins.substring 0 10 rev);
15+ rev = "8c70800b5e8dc5535c379dec4a6fb32f7ab5e878";
16+
17+ src = fetchFromGitHub {
18+ owner = "dotnet";
19+ repo = "coreclr";
20+ inherit rev;
21+ sha256 = "1galskbnr9kdjjxpx5qywh49400swchhq5f54i16kxyr9k4mvq1f";
22+ };
23+
24+ buildInputs = [
25+ which
26+ cmake
27+ clang_35
28+ llvmPackages_36.llvm
29+ llvmPackages_36.lldb
30+ libunwind
31+ gettext
32+ openssl
33+ ];
34+
35+ configurePhase = ''
36+ # Prevent clang-3.5 (rather than just clang) from being selected as the compiler as that's
37+ # not wrapped
38+ substituteInPlace src/pal/tools/gen-buildsys-clang.sh --replace "which \"clang-" "which \"clang-DoNotFindThisOne"
39+
40+ # Prevent the -nostdinc++ flag to be passed to clang, which causes a compilation error
41+ substituteInPlace src/CMakeLists.txt --replace "if(NOT CLR_CMAKE_PLATFORM_DARWIN)" "if(FALSE)"
42+
43+ patchShebangs build.sh
44+ patchShebangs src/pal/tools/gen-buildsys-clang.sh
45+ '';
46+
47+ buildPhase = "./build.sh";
48+
49+ installPhase = ''
50+ pushd bin/Product/Linux.x64.Debug/
51+ mkdir -v -p $out/bin
52+ cp -v coreconsole corerun crossgen $out/bin
53+ cp -rv lib $out
54+ cp -v *.so $out/lib
55+ cp -rv inc $out/include
56+ cp -rv gcinfo $out/include
57+ popd
58+ '';
59+
60+ meta = {
61+ homepage = http://dotnet.github.io/core/;
62+ description = ".NET is a general purpose development platform.";
63+ platforms = with stdenv.lib.platforms; linux;
64+ maintainers = with stdenv.lib.maintainers; [ obadz ];
65+ license = stdenv.lib.licenses.mit;
66+ };
67+}
pkgs/top-level/all-packages.nix+2
@@ -10169,6 +10169,8 @@ let
1016910169
1017010170 comic-relief = callPackage ../data/fonts/comic-relief {};
1017110171
10172+ coreclr = callPackage ../development/compilers/coreclr { };
10173+
1017210174 corefonts = callPackage ../data/fonts/corefonts { };
1017310175
1017410176 wrapFonts = paths : ((import ../data/fonts/fontWrap) {