2016-08-26 05:31:39 +00:00
|
|
|
{ newScope, stdenv, isl, fetchurl, overrideCC, wrapCC }:
|
|
|
|
let
|
|
|
|
callPackage = newScope (self // { inherit stdenv isl version fetch; });
|
|
|
|
|
2016-09-02 18:14:33 +00:00
|
|
|
version = "3.9.0";
|
2016-08-26 05:31:39 +00:00
|
|
|
|
|
|
|
fetch = fetch_v version;
|
|
|
|
fetch_v = ver: name: sha256: fetchurl {
|
2016-09-11 08:11:44 +00:00
|
|
|
url = "http://llvm.org/releases/${version}/${name}-${ver}.src.tar.xz";
|
2016-08-26 05:31:39 +00:00
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
2016-09-02 18:14:33 +00:00
|
|
|
compiler-rt_src = fetch "compiler-rt" "16m5g0hf8yg9npnw25j2a86g34nsvk9rsm3c84gbch2prm7j5rg0";
|
|
|
|
clang-tools-extra_src = fetch "clang-tools-extra" "052zg0h5vbmxnh2ikc743rw3649f112dfyn8hg39x6cfxi3fqyjv";
|
2016-08-26 05:31:39 +00:00
|
|
|
|
|
|
|
self = {
|
|
|
|
llvm = callPackage ./llvm.nix {
|
|
|
|
inherit compiler-rt_src stdenv;
|
|
|
|
};
|
|
|
|
|
|
|
|
clang-unwrapped = callPackage ./clang {
|
|
|
|
inherit clang-tools-extra_src stdenv;
|
|
|
|
};
|
|
|
|
|
|
|
|
clang = wrapCC self.clang-unwrapped;
|
|
|
|
|
|
|
|
stdenv = overrideCC stdenv self.clang;
|
|
|
|
|
|
|
|
lldb = callPackage ./lldb.nix {};
|
|
|
|
|
|
|
|
libcxx = callPackage ./libc++ {};
|
|
|
|
|
|
|
|
libcxxabi = callPackage ./libc++abi.nix {};
|
|
|
|
};
|
|
|
|
in self
|