Skip to content

Commit

Permalink
wiki-link to macos
Browse files Browse the repository at this point in the history
Co-authored-by: Sridhar Ratnakumar <3998+srid@users.noreply.github.com>
  • Loading branch information
shivaraj-bh and srid authored Apr 2, 2024
1 parent 345302c commit ae455c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/haskell-rust-ffi.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ nix run .#hello-haskell
You should see the output `Hello, from rust!`.

> [!note] MacOS caveat
> If you are on MacOS, the Haskell package will not run because `dlopen` will be looking for the `.dylib` file in the temporary build directory (`/private/tmp/nix-build-rust-nix...`). To fix this, you need to include [fixDarwinDylibNames](https://github.com/NixOS/nixpkgs/blob/af8fd52e05c81eafcfd4fb9fe7d3553b61472712/pkgs/build-support/setup-hooks/fix-darwin-dylib-names.sh) in `flake.nix`:
> If you are on [[macos]], the Haskell package will not run because `dlopen` will be looking for the `.dylib` file in the temporary build directory (`/private/tmp/nix-build-rust-nix...`). To fix this, you need to include [fixDarwinDylibNames](https://github.com/NixOS/nixpkgs/blob/af8fd52e05c81eafcfd4fb9fe7d3553b61472712/pkgs/build-support/setup-hooks/fix-darwin-dylib-names.sh) in `flake.nix`:
>
>```nix
>{
Expand Down

0 comments on commit ae455c0

Please sign in to comment.