···11-{ lib, stdenv, llvm_meta, cmake, fetch, libcxx, libunwind, llvm, version }:
22-33-stdenv.mkDerivation {
44- pname = "libcxxabi";
55- inherit version;
66-77- src = fetch "libcxxabi" "12lp799rskr4fc2xr64qn4jfkjnfd8b1aymvsxyn4k9ar7r9pgqv";
88-99- outputs = [ "out" "dev" ];
1010-1111- postUnpack = ''
1212- unpackFile ${libcxx.src}
1313- unpackFile ${llvm.src}
1414- export cmakeFlags="-DLLVM_PATH=$PWD/$(ls -d llvm-*) -DLIBCXXABI_LIBCXX_PATH=$PWD/$(ls -d libcxx-*)"
1515- '' + lib.optionalString stdenv.isDarwin ''
1616- export TRIPLE=x86_64-apple-darwin
1717- '' + lib.optionalString stdenv.hostPlatform.isMusl ''
1818- patch -p1 -d $(ls -d libcxx-*) -i ${../../libcxx-0001-musl-hacks.patch}
1919- '';
2020-2121- patches = [
2222- ./gnu-install-dirs.patch
2323- ];
2424-2525- nativeBuildInputs = [ cmake ];
2626- buildInputs = lib.optional (!stdenv.isDarwin) libunwind;
2727-2828- preInstall = lib.optionalString stdenv.isDarwin ''
2929- for file in lib/*.dylib; do
3030- if [ -L "$file" ]; then continue; fi
3131-3232- # Fix up the install name. Preserve the basename, just replace the path.
3333- installName="$out/lib/$(basename $(${stdenv.cc.targetPrefix}otool -D $file | tail -n 1))"
3434-3535- # this should be done in CMake, but having trouble figuring out
3636- # the magic combination of necessary CMake variables
3737- # if you fancy a try, take a look at
3838- # https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/RPATH-handling
3939- ${stdenv.cc.targetPrefix}install_name_tool -id $installName $file
4040-4141- # cc-wrapper passes '-lc++abi' to all c++ link steps, but that causes
4242- # libcxxabi to sometimes link against a different version of itself.
4343- # Here we simply make that second reference point to ourselves.
4444- for other in $(${stdenv.cc.targetPrefix}otool -L $file | awk '$1 ~ "/libc\\+\\+abi" { print $1 }'); do
4545- ${stdenv.cc.targetPrefix}install_name_tool -change $other $installName $file
4646- done
4747- done
4848- '';
4949-5050- postInstall = ''
5151- mkdir -p "$dev/include"
5252- install -m 644 ../include/${if stdenv.isDarwin then "*" else "cxxabi.h"} "$dev/include"
5353- '';
5454-5555- passthru = {
5656- libName = "c++abi";
5757- };
5858-5959- meta = llvm_meta // {
6060- homepage = "https://libcxxabi.llvm.org/";
6161- description = "Provides C++ standard library support";
6262- longDescription = ''
6363- libc++abi is a new implementation of low level support for a standard C++ library.
6464- '';
6565- # "All of the code in libc++abi is dual licensed under the MIT license and
6666- # the UIUC License (a BSD-like license)":
6767- license = with lib.licenses; [ mit ncsa ];
6868- maintainers = llvm_meta.maintainers ++ [ lib.maintainers.vlstill ];
6969- };
7070-}
···11-{ lib
22-, stdenv
33-, llvm_meta
44-, fetch
55-, cmake
66-, llvm
77-, targetLlvm
88-, perl
99-, version
1010-}:
1111-1212-stdenv.mkDerivation {
1313- pname = "openmp";
1414- inherit version;
1515-1616- src = fetch "openmp" "0p2n52676wlq6y9q99n5pivq6pvvda1p994r69fxj206ahn59jir";
1717-1818- nativeBuildInputs = [ cmake perl ];
1919- buildInputs = [
2020- (if stdenv.buildPlatform == stdenv.hostPlatform then llvm else targetLlvm)
2121- ];
2222-2323- meta = llvm_meta // {
2424- homepage = "https://openmp.llvm.org/";
2525- description = "Support for the OpenMP language";
2626- longDescription = ''
2727- The OpenMP subproject of LLVM contains the components required to build an
2828- executable OpenMP program that are outside the compiler itself.
2929- Contains the code for the runtime library against which code compiled by
3030- "clang -fopenmp" must be linked before it can run and the library that
3131- supports offload to target devices.
3232- '';
3333- # "All of the code is dual licensed under the MIT license and the UIUC
3434- # License (a BSD-like license)":
3535- license = with lib.licenses; [ mit ncsa ];
3636- };
3737-}
-1
pkgs/test/default.nix
···6767 # libcxx does not build for some reason on aarch64-linux
6868 (filterAttrs (n: _: n != "llvmPackages_7"))
6969 ] ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
7070- (filterAttrs (n: _: n != "llvmPackages_5"))
7170 (filterAttrs (n: _: n != "llvmPackages_6"))
7271 (filterAttrs (n: _: n != "llvmPackages_7"))
7372 (filterAttrs (n: _: n != "llvmPackages_8"))
-1
pkgs/top-level/aliases.nix
···161161 cvs_fast_export = cvs-fast-export; # Added 2021-06-10
162162163163 # these are for convenience, not for backward compat and shouldn't expire
164164- clang5Stdenv = lowPrio llvmPackages_5.stdenv;
165164 clang6Stdenv = lowPrio llvmPackages_6.stdenv;
166165 clang7Stdenv = lowPrio llvmPackages_7.stdenv;
167166 clang8Stdenv = lowPrio llvmPackages_8.stdenv;