nixpkgs/pkgs/development/compilers/llvm/3.6/default.nix

36 lines
943 B
Nix
Raw Normal View History

{ newScope, stdenv, isl, fetchurl, overrideCC, wrapCC }:
2015-03-05 05:43:33 +00:00
let
2015-06-12 01:58:26 +01:00
callPackage = newScope (self // { inherit stdenv isl version fetch; });
2015-03-05 05:43:33 +00:00
2015-07-17 22:12:49 +01:00
version = "3.6.2";
2015-03-05 05:43:33 +00:00
fetch = fetch_v version;
fetch_v = ver: name: sha256: fetchurl {
url = "http://llvm.org/releases/${ver}/${name}-${ver}.src.tar.xz";
inherit sha256;
};
2015-07-17 22:12:49 +01:00
compiler-rt_src = fetch "compiler-rt" "11qx8d3pbfqjaj2x207pvlvzihbs1z2xbw4crpz7aid6h1yz6bqg";
clang-tools-extra_src = fetch "clang-tools-extra" "1ssgs1108gnsggyx9wcl4hmq196f5ix0y1j7ygfh3xcqsckwc3ka";
2015-03-05 05:43:33 +00:00
self = {
llvm = callPackage ./llvm.nix {
inherit compiler-rt_src stdenv;
2015-03-05 05:43:33 +00:00
};
clang-unwrapped = callPackage ./clang {
inherit clang-tools-extra_src stdenv;
2015-03-05 05:43:33 +00:00
};
clang = wrapCC self.clang-unwrapped;
stdenv = overrideCC stdenv self.clang;
2015-03-05 05:43:33 +00:00
lldb = callPackage ./lldb.nix {};
libcxx = callPackage ./libc++ {};
2015-03-05 05:43:33 +00:00
libcxxabi = callPackage ./libc++abi.nix {};
2015-03-05 05:43:33 +00:00
};
in self