Skip to content

Commit

Permalink
fix: do not try to build mugraph-node on shell initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
cfcosta committed Jul 21, 2024
1 parent f9db3a6 commit 51f1c5b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ let
devShells.default = mkShell {
name = "mu-shell";

packages = (attrValues packages) ++ [
packages = [
packages.cargo-risczero
packages.r0vm
packages.risc0-rust
packages.rustup-mock

final.cargo-nextest
final.cargo-watch
];
Expand Down
4 changes: 3 additions & 1 deletion nix/packages/mugraph-node.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ mugraph.risc0Platform.buildRustPackage {
version = "0.0.1";
src = ../..;

env.RISC0_RUST_SRC = "${mugraph.rust}/lib/rustlib/src/rust";
prePatch = ''
export RISC0_RUST_SRC="${mugraph.rust}/lib/rustlib/src/rust"
'';

cargoLock.lockFile = ../../Cargo.lock;
nativeBuildInputs = [ makeWrapper ];
Expand Down

0 comments on commit 51f1c5b

Please sign in to comment.