diff --git a/nix/dependencies/cargo-risczero.nix b/nix/dependencies/cargo-risczero.nix index 1a9f2ad..8fe981a 100644 --- a/nix/dependencies/cargo-risczero.nix +++ b/nix/dependencies/cargo-risczero.nix @@ -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"; @@ -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";