llvmPackages_{12,13,14,15,16,17,18,19,20,git}.lld: move src
This commit is contained in:
committed by
Alyssa Ross
parent
f5b5156596
commit
3deb18034c
@@ -17,7 +17,15 @@
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs:
|
||||
let
|
||||
src' =
|
||||
postPatch = lib.optionalString (lib.versionOlder release_version "14") ''
|
||||
substituteInPlace MachO/CMakeLists.txt --replace-fail \
|
||||
'(''${LLVM_MAIN_SRC_DIR}/' '(../'
|
||||
'';
|
||||
in {
|
||||
pname = "lld";
|
||||
inherit version;
|
||||
|
||||
src =
|
||||
if monorepoSrc != null then
|
||||
runCommand "lld-src-${version}" { inherit (monorepoSrc) passthru; } (''
|
||||
mkdir -p "$out"
|
||||
@@ -30,16 +38,6 @@ let
|
||||
mkdir -p "$out/llvm"
|
||||
'') else src;
|
||||
|
||||
postPatch = lib.optionalString (lib.versionOlder release_version "14") ''
|
||||
substituteInPlace MachO/CMakeLists.txt --replace-fail \
|
||||
'(''${LLVM_MAIN_SRC_DIR}/' '(../'
|
||||
'';
|
||||
in {
|
||||
pname = "lld";
|
||||
inherit version;
|
||||
|
||||
src = src';
|
||||
|
||||
sourceRoot = "${finalAttrs.src.name}/lld";
|
||||
|
||||
patches =
|
||||
|
||||
Reference in New Issue
Block a user