Skip to content

Commit

Permalink
fix: always pass BARRETENBERG_BIN_DIR env var
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Aug 14, 2023
1 parent af036e6 commit f0f3c19
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,18 @@
sharedEnvironment = {
# We enable backtraces on any failure for help with debugging
RUST_BACKTRACE = "1";
# We set the environment variable because barretenberg must be compiled in a special way for wasm
BARRETENBERG_BIN_DIR = "${pkgs.barretenberg-wasm}/bin";
};

nativeEnvironment = sharedEnvironment // {
# rust-bindgen needs to know the location of libclang
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
};

wasmEnvironment = sharedEnvironment // {
# We set the environment variable because barretenberg must be compiled in a special way for wasm
BARRETENBERG_BIN_DIR = "${pkgs.barretenberg-wasm}/bin";
};
wasmEnvironment = sharedEnvironment // { };

testEnvironment = sharedEnvironment // {};
testEnvironment = sharedEnvironment // { };

# The `self.rev` property is only available when the working tree is not dirty
GIT_COMMIT = if (self ? rev) then self.rev else "unknown";
Expand Down

0 comments on commit f0f3c19

Please sign in to comment.