diff --git a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix index 6b486d88cb50..6ae15af1d1fe 100644 --- a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix +++ b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix @@ -48,8 +48,6 @@ let inherit (stdenv.hostPlatform) isMusl isAarch64 isWindows; noSanitizers = !haveLibc || bareMetal || isMusl || isDarwinStatic || isWindows; - pname = "compiler-rt${lib.optionalString (haveLibc) "-libc"}"; - src' = if monorepoSrc != null then runCommand "compiler-rt-src-${version}" { inherit (monorepoSrc) passthru; } ( @@ -68,7 +66,8 @@ let in stdenv.mkDerivation (finalAttrs: { - inherit pname version; + pname = "compiler-rt${lib.optionalString (haveLibc) "-libc"}"; + inherit version; src = src'; sourceRoot = "${finalAttrs.src.name}/compiler-rt";