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

44 lines
1.1 KiB
Nix
Raw Normal View History

2015-02-03 22:41:12 +00:00
{ pkgs, newScope, stdenv, isl, fetchurl }:
2015-02-03 21:58:32 +00:00
let
callPackage = newScope (self // { inherit stdenv isl version fetch; });
2015-08-17 11:02:17 +01:00
version = "3.5.2";
2015-02-03 21:58:32 +00:00
fetch = fetch_v version;
fetch_v = ver: name: sha256: fetchurl {
url = "https://releases.llvm.org/${ver}/${name}-${ver}.src.tar.xz";
2015-02-03 21:58:32 +00:00
inherit sha256;
};
2015-08-17 11:02:17 +01:00
compiler-rt_src = fetch "compiler-rt" "1hsdnzzdr5kglz6fnv3lcsjs222zjsy14y8ax9dy6zqysanplbal";
clang-tools-extra_src = fetch "clang-tools-extra" "01607w6hdf1pjgaapn9fy6smk22i3d4ncqjlhk4xi55ifi6kf6pj";
2015-02-03 21:58:32 +00:00
self = {
llvm = callPackage ./llvm.nix rec {
2015-08-17 11:02:17 +01:00
version = "3.5.2";
2015-02-03 21:58:32 +00:00
fetch = fetch_v version;
inherit compiler-rt_src;
};
clang = callPackage ./clang.nix rec {
2015-08-17 11:02:17 +01:00
version = "3.5.2";
2015-02-03 21:58:32 +00:00
fetch = fetch_v version;
inherit clang-tools-extra_src;
};
lld = callPackage ./lld.nix {};
lldb = callPackage ./lldb.nix {};
polly = callPackage ./polly.nix {};
dragonegg = callPackage ./dragonegg.nix {};
2015-02-03 22:41:12 +00:00
libcxx = callPackage ./libc++ { stdenv = pkgs.clangStdenv; };
libcxxabi = callPackage ./libc++abi { stdenv = pkgs.clangStdenv; };
2015-08-17 11:02:17 +01:00
#openmp = callPackage ./openmp {};
2015-02-03 21:58:32 +00:00
};
in self