18 version = "3.6-mono-2017-02-15";
20 src = fetchFromGitHub {
23 rev = "dbb6fdffdeb780d11851a6be77c209bd7ada4bd3";
24 sha256 = "07wd1cs3fdvzb1lv41b655z5zk34f47j8fgd9ljjimi5j9pj71f7";
27 nativeBuildInputs = [ cmake ];
28 buildInputs = [ perl groff libxml2 python2 libffi ] ++ lib.optional stdenv.isLinux valgrind;
30 propagatedBuildInputs = [ ncurses zlib ];
32 # hacky fix: created binaries need to be run before installation
37 postBuild = "rm -fR $out";
39 cmakeFlags = with stdenv; [
40 "-DLLVM_ENABLE_FFI=ON"
41 "-DLLVM_BINUTILS_INCDIR=${libbfd.dev}/include"
42 ] ++ lib.optional (!isDarwin) "-DBUILD_SHARED_LIBS=ON";
45 description = "Collection of modular and reusable compiler and toolchain technologies - Mono build";
46 homepage = "http://llvm.org/";
47 license = lib.licenses.bsd3;
48 maintainers = with lib.maintainers; [ thoughtpolice ];
49 platforms = lib.platforms.all;