llvmPackages: Organize files

Always do pkg/default.nix not pkg.nix; use directories to avoid
prefixing patches and other files.
This commit is contained in:
John Ericson
2021-03-24 05:02:50 +00:00
parent 9677d30d77
commit 19a974945b
93 changed files with 116 additions and 108 deletions
@@ -28,7 +28,7 @@ let
'';
in {
llvm = callPackage ./llvm.nix { };
llvm = callPackage ./llvm { };
clang-unwrapped = callPackage ./clang {
inherit clang-tools-extra_src;
@@ -68,16 +68,16 @@ let
extraBuildCommands = mkExtraBuildCommands cc;
};
lld = callPackage ./lld.nix {};
lld = callPackage ./lld {};
lldb = callPackage ./lldb.nix {};
lldb = callPackage ./lldb {};
});
libraries = lib.makeExtensible (libraries: let
callPackage = newScope (libraries // buildLlvmTools // { inherit stdenv cmake libxml2 python3 isl release_version version fetch; });
in {
compiler-rt = callPackage ./compiler-rt.nix {};
compiler-rt = callPackage ./compiler-rt {};
stdenv = overrideCC stdenv buildLlvmTools.clang;
@@ -85,7 +85,7 @@ let
libcxx = callPackage ./libc++ {};
libcxxabi = callPackage ./libc++abi.nix {};
libcxxabi = callPackage ./libc++abi {};
openmp = callPackage ./openmp.nix {};
});