2014-01-21 01:19:53 +00:00
|
|
|
{ newScope, stdenv, isl, fetchurl }:
|
|
|
|
let
|
|
|
|
callPackage = newScope (self // { inherit stdenv isl version fetch; });
|
|
|
|
|
|
|
|
version = "3.4";
|
|
|
|
|
2014-05-10 16:29:41 +01:00
|
|
|
fetch = fetch_v version;
|
|
|
|
fetch_v = ver: name: sha256: fetchurl {
|
|
|
|
url = "http://llvm.org/releases/${ver}/${name}-${ver}.src.tar.gz";
|
2014-01-21 01:19:53 +00:00
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
2014-05-10 16:29:41 +01:00
|
|
|
compiler-rt_src = fetch "compiler-rt" "0p5b6varxdqn7q3n77xym63hhq4qqxd2981pfpa65r1w72qqjz7k";
|
|
|
|
clang-tools-extra_src = fetch "clang-tools-extra" "1d1822mwxxl9agmyacqjw800kzz5x8xr0sdmi8fgx5xfa5sii1ds";
|
2014-01-21 01:19:53 +00:00
|
|
|
|
2014-05-10 16:29:41 +01:00
|
|
|
self = {
|
|
|
|
llvm = callPackage ./llvm.nix rec {
|
2014-06-19 23:22:38 +01:00
|
|
|
version = "3.4.2";
|
2014-05-10 16:29:41 +01:00
|
|
|
fetch = fetch_v version;
|
|
|
|
inherit compiler-rt_src;
|
|
|
|
};
|
|
|
|
|
|
|
|
clang = callPackage ./clang.nix rec {
|
2014-06-19 23:22:38 +01:00
|
|
|
version = "3.4.2";
|
2014-05-10 16:29:41 +01:00
|
|
|
fetch = fetch_v version;
|
|
|
|
inherit clang-tools-extra_src;
|
|
|
|
};
|
2014-01-21 01:19:53 +00:00
|
|
|
|
|
|
|
lld = callPackage ./lld.nix {};
|
|
|
|
|
|
|
|
lldb = callPackage ./lldb.nix {};
|
|
|
|
|
|
|
|
polly = callPackage ./polly.nix {};
|
|
|
|
|
|
|
|
dragonegg = callPackage ./dragonegg.nix {};
|
|
|
|
};
|
|
|
|
in self
|