mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
fea2266290
Now most packages in the llvm suite are built as separate derivations. The exceptions are: * compiler-rt must currently be built with llvm. This increases llvm's size by 6 MB * clang-tools-extra must be built with clang In addition, the top-level llvm attribute is defaulted to llvm 3.4, and llvm 3.3 must be accessed by the llvm_33 attribute. This is to make the out-of-date packages obvious in the hope that eventually all will be updated to work with 3.4 and 3.3 can be removed. I think we should keep this policy in the future (latest llvm gets top-level name, the rest are versioned until they can be removed). The llvm packages (except libc++, which exception I will try to remove on the next update) can all be accessed via the llvmPackages attribute, and there are also aliases for the packages that already existed (llvm, clang, and dragonegg). Signed-off-by: Shea Levy <shea@shealevy.com>
32 lines
849 B
Nix
32 lines
849 B
Nix
{ stdenv, fetchurl, fetchsvn, cmake, libcxxabi, python }:
|
|
|
|
let
|
|
version = "3.4";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
name = "libc++-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://llvm.org/releases/${version}/libcxx-${version}.src.tar.gz";
|
|
sha256 = "1sqd5qhqj7qnn9zjxx9bv7ky4f7xgmh9sbgd53y1kszhg41217xx";
|
|
};
|
|
|
|
buildInputs = [ cmake libcxxabi python ];
|
|
|
|
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release"
|
|
"-DLIBCXX_LIBCXXABI_INCLUDE_PATHS=${libcxxabi}/include"
|
|
"-DLIBCXX_CXX_ABI=libcxxabi" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
passthru.abi = libcxxabi;
|
|
|
|
meta = {
|
|
homepage = http://libcxx.llvm.org/;
|
|
description = "A new implementation of the C++ standard library, targeting C++11";
|
|
license = "BSD";
|
|
maintainers = stdenv.lib.maintainers.shlevy;
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|