Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5 from cspr-rad/fix-r0package
Browse files Browse the repository at this point in the history
fix buildRisc0Package for macos
  • Loading branch information
marijanp authored Jan 12, 2024
2 parents 9e5dd88 + 7f1a22b commit 144c9a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/buildRisc0Package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
, cargo
, openssl
, lib
, stdenv
, darwin
}:
attrs:

Expand Down Expand Up @@ -57,5 +59,9 @@ rustPlatform.buildRustPackage (lib.mergeAttrsConcatenateValues attrs {
cargo-mock
lld-mock
];
buildInputs = [ openssl.dev ];
buildInputs = [
openssl.dev
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.SystemConfiguration
];
})
2 changes: 2 additions & 0 deletions pkgs/rustc0/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ stdenv.mkDerivation rec {

buildInputs = [ zlib gcc.cc.lib ];

dontStrip = stdenv.hostPlatform.isDarwin;

installPhase = ''
runHook preInstall
mkdir -p $out/bin
Expand Down

0 comments on commit 144c9a4

Please sign in to comment.