Skip to content

Commit

Permalink
nix: Use immutable rev for LLVM source
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <nick@nickspinale.com>
  • Loading branch information
nspin committed Nov 11, 2024
1 parent f9adad8 commit 5c8783e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions hacking/nix/rust-utils/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,12 @@ in

symlinkToRegularFile = callBuildBuildPackage ./symlink-to-regular-file.nix {};

mkCompilerRTSource = { version, hash }:
mkCompilerRTSource = { rev, hash }:
let
llvmProject = fetchFromGitHub {
owner = "rust-lang";
repo = "llvm-project";
rev = "rustc/${version}";
inherit hash;
inherit rev hash;
};
in
runCommand "compiler-rt" {} ''
Expand Down
4 changes: 2 additions & 2 deletions hacking/nix/scope/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ superCallPackage ../rust-utils {} self //
} // {
channel = topLevelRustToolchainFile.attrs.toolchain.channel;
compilerRTSource = mkCompilerRTSource {
version = "19.1-2024-07-30";
hash = "sha256-fV51iDAbkRmWJj0twTmQKdZdLueMAKSZR6bBtgVPCbk=";
rev = "rustc-1.81.0";
hash = "sha256-55kUrNucrs9JSlTP8nxY8bZQGx7u6xMCbJe63fN5uU8=";
};
mkCustomTargetPath = customTargetTripleTripleName:
let
Expand Down

0 comments on commit 5c8783e

Please sign in to comment.