mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-06-26 08:59:45 +00:00
fix(nix): nix circuits vars
This commit is contained in:
parent
b85e6d31e0
commit
d43449b8d2
3203
flake.lock
generated
3203
flake.lock
generated
File diff suppressed because it is too large
Load Diff
10
flake.nix
10
flake.nix
@ -54,6 +54,12 @@
|
||||
src = ./.;
|
||||
cargoLock = builtins.fromTOML (builtins.readFile ./Cargo.lock);
|
||||
|
||||
polPrebuilt = pkgs.fetchzip {
|
||||
url = "https://github.com/logos-blockchain/logos-blockchain-circuits/releases/download/v0.5.0/logos-blockchain-circuits-v0.5.0-linux-x86_64.tar.gz";
|
||||
hash = "sha256-OgwG1tFecpuaWVc/kgQJp3LCXxJHB59n/KDRhmvqDBY=";
|
||||
stripRoot = true;
|
||||
};
|
||||
|
||||
# Parse Cargo.lock at eval time to find the locked risc0-circuit-recursion
|
||||
# version and its crates.io checksum — no hardcoding required.
|
||||
risc0CircuitRecursion = builtins.head (
|
||||
@ -102,6 +108,10 @@
|
||||
pkgs.python3 # Required for correct builds now, as python is sandboxed in nix builds
|
||||
];
|
||||
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
|
||||
LBC_POL_LIB_DIR = "${polPrebuilt}/pol";
|
||||
LBC_POC_LIB_DIR = "${polPrebuilt}/poc";
|
||||
LBC_POQ_LIB_DIR = "${polPrebuilt}/poq";
|
||||
LBC_SIGNATURE_LIB_DIR = "${polPrebuilt}/signature";
|
||||
# Point the risc0-circuit-recursion build script to the pre-fetched zip
|
||||
# so it doesn't try to download it inside the sandbox.
|
||||
RECURSION_SRC_PATH = "${recursionZkr}";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user