Unverified Commit ba1deff5 authored by Tristan Ross's avatar Tristan Ross Committed by GitHub
Browse files

llvmPackages.*: Expose git rev through pkg.src.rev (#354792)

parents a5a26075 cdefc40e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ runCommand "llvm-binutils-${version}"
  passthru = {
    isLLVM = true;
    inherit targetPrefix;
    inherit llvm lld;
  };
}
  (''
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ stdenv.mkDerivation (finalAttrs: {
  inherit version patches;

  # Blank llvm dir just so relative path works
  src = runCommand "bolt-src-${finalAttrs.version}" { } (
  src = runCommand "bolt-src-${finalAttrs.version}" { inherit (monorepoSrc) passthru; } (
    ''
      mkdir $out
    ''
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ let
  pname = "clang";

  src' = if monorepoSrc != null then
    runCommand "${pname}-src-${version}" {} (''
    runCommand "${pname}-src-${version}" { inherit (monorepoSrc) passthru; } (''
      mkdir -p "$out"
    '' + lib.optionalString (lib.versionAtLeast release_version "14") ''
      cp -r ${monorepoSrc}/cmake "$out"
+2 −1
Original line number Diff line number Diff line
@@ -56,10 +56,11 @@ rec {
          else
            "llvmorg-${releaseInfo.version}";
      in
      fetchFromGitHub {
      fetchFromGitHub rec {
        owner = "llvm";
        repo = "llvm-project";
        inherit rev sha256;
        passthru = { inherit owner repo rev; };
      };

}
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ let
      apple-sdk.override { enableBootstrap = true; };

  src' = if monorepoSrc != null then
    runCommand "${baseName}-src-${version}" {} (''
    runCommand "${baseName}-src-${version}" { inherit (monorepoSrc) passthru; } (''
      mkdir -p "$out"
    '' + lib.optionalString (lib.versionAtLeast release_version "14") ''
      cp -r ${monorepoSrc}/cmake "$out"
Loading