Skip to content

Commit

Permalink
nix: Fix for stable rust toolchain
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Sep 18, 2024
1 parent e34b5ac commit be5a66c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 7 additions & 2 deletions hacking/nix/scope/microkit/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ let
cargoConfigFile = toTOMLFile "config.toml" vendoredLockfile.configFragment;

in
stdenv.mkDerivation {
stdenv.mkDerivation ({
name = "microkit-sdk-just-tool";

src = lib.cleanSource (microkitSource + "/tool/microkit");
Expand All @@ -106,6 +106,11 @@ let
buildPackages.stdenv.cc
];

} // lib.optionalAttrs (!rustEnvironment.isNightly) {
# HACK
RUSTC_BOOTSTRAP = 1;
} // {

dontInstall = true;
dontFixup = true;

Expand All @@ -118,7 +123,7 @@ let
buildPhase = ''
cargo build -Z unstable-options --frozen --config ${cargoConfigFile} ${rustEnvironment.artifactDirFlag} $out/bin
'';
};
});

mkLoader =
{ systemXML
Expand Down
5 changes: 4 additions & 1 deletion hacking/nix/scope/world/docs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ let
nativeBuildInputs = [ rsync rustToolchain ];
RUST_TARGET_PATH = rustEnvironment.mkTargetPath targetTriple;
LIBCLANG_PATH = libclangPath;
} // seL4RustEnvVars) ''
} // lib.optionalAttrs (!rustEnvironment.isNightly) {
# HACK
RUSTC_BOOTSTRAP = 1;
} // seL4RustEnvVars) ''
target_dir=$(pwd)/target
cargo doc \
Expand Down

0 comments on commit be5a66c

Please sign in to comment.