Skip to content

Commit

Permalink
fix(nix): fix cargo-risczero build on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
cfcosta committed Jul 21, 2024
1 parent 8686b87 commit 4a46194
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions nix/dependencies/cargo-risczero.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
openssl,
darwin,
mugraph,
lib,
stdenv,
}:
let
inherit (lib) optionals;
inherit (stdenv) isDarwin;
in
mugraph.dependencies.rustPlatform.buildRustPackage {
pname = "cargo-risczero";
version = "1.0.3";
Expand All @@ -11,8 +17,8 @@ mugraph.dependencies.rustPlatform.buildRustPackage {
buildAndTestSubdir = "risc0/cargo-risczero";
buildInputs = [
openssl.dev
darwin.apple_sdk.frameworks.SystemConfiguration
];

] ++ optionals isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ];

doCheck = false;
cargoLock.lockFile = "${mugraph.inputs.risc0}/Cargo.lock";
Expand Down

0 comments on commit 4a46194

Please sign in to comment.