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

chore: fix wasm build on macos #541

Merged
merged 1 commit into from
Sep 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@
GIT_COMMIT = if (self ? rev) then self.rev else "unknown";
GIT_DIRTY = if (self ? rev) then "false" else "true";

extraBuildInputs = pkgs.lib.optionals pkgs.stdenv.isDarwin [
# Need libiconv and apple Security on Darwin. See https://github.com/ipetkov/crane/issues/156
pkgs.libiconv
pkgs.darwin.apple_sdk.frameworks.Security
];

commonArgs = {
inherit (crateACVMDefinitions) pname version;
src = pkgs.lib.cleanSourceWith {
Expand Down Expand Up @@ -120,7 +126,7 @@
src = ./.;
};

buildInputs = [ ];
buildInputs = [ ] ++ extraBuildInputs;

};

Expand Down