mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
llvmPackages_{12,13,14,15,16,17,18,19,20,git}.libcxx: move pname
This commit is contained in:
committed by
Alyssa Ross
parent
71a22894ec
commit
e19361f8d3
@@ -26,7 +26,6 @@
|
||||
# https://github.com/NixOS/nixpkgs/issues/269548
|
||||
assert cxxabi == null || !stdenv.hostPlatform.isDarwin;
|
||||
let
|
||||
pname = "libcxx";
|
||||
cxxabiName = "lib${if cxxabi == null then "cxxabi" else cxxabi.libName}";
|
||||
runtimes = [ "libcxx" ] ++ lib.optional (cxxabi == null) "libcxxabi";
|
||||
|
||||
@@ -34,7 +33,7 @@ let
|
||||
useLLVM = stdenv.hostPlatform.useLLVM or false;
|
||||
|
||||
src' = if monorepoSrc != null then
|
||||
runCommand "${pname}-src-${version}" { inherit (monorepoSrc) passthru; } (''
|
||||
runCommand "libcxx-src-${version}" { inherit (monorepoSrc) passthru; } (''
|
||||
mkdir -p "$out/llvm"
|
||||
'' + (lib.optionalString (lib.versionAtLeast release_version "14") ''
|
||||
cp -r ${monorepoSrc}/cmake "$out"
|
||||
@@ -118,7 +117,8 @@ let
|
||||
in
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
inherit pname version cmakeFlags;
|
||||
pname = "libcxx";
|
||||
inherit version cmakeFlags;
|
||||
|
||||
src = src';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user