Skip to content

Commit

Permalink
HACK(eddyb) work around the default "deep copy" handling of `$cargoDe…
Browse files Browse the repository at this point in the history
…ps` (aka `cargo-vendor-dir`).
  • Loading branch information
eddyb committed Oct 7, 2024
1 parent 6c9e2ca commit 184b4d7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@
cargoLock.outputHashes = {
"rustc_codegen_spirv-0.9.0" = "sha256-99YuiuPVb/OLTmFN/TTlDhoKpkO8hMwmdQtPHym7dag=";
};
dontCargoSetupPostUnpack = true;
postUnpack = ''
mkdir -p .cargo
cat "$cargoDeps"/.cargo/config | sed "s|cargo-vendor-dir|$cargoDeps|" >> .cargo/config
# HACK(eddyb) bypass cargoSetupPostPatchHook.
export cargoDepsCopy="$cargoDeps"
'';
nativeBuildInputs = [pkgs.makeWrapper];
configurePhase = ''
export RUNNER_DIR="$out/repo/runner"
Expand Down

0 comments on commit 184b4d7

Please sign in to comment.