diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-05-30 06:51:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-30 06:51:30 +0300 |
commit | 8d245c250a50f3c8d052926211161d4bb5766922 (patch) | |
tree | 0fadbc7e5d8a879de6cc426496bcf3b03f931b78 | |
parent | dda46f49cfc989d90f4cb04d5687cca1ef96743c (diff) | |
parent | 1c4f95355196d2a9ea0de0140b75e78dc6b626f8 (diff) |
Merge pull request #234919 from NixOS/backport-234873-to-release-23.05
[Backport release-23.05] wasmtime: fix lib on darwin
-rw-r--r-- | pkgs/development/interpreters/wasmtime/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/wasmtime/default.nix b/pkgs/development/interpreters/wasmtime/default.nix index 58cde0e101389..cf6cc38e9bb30 100644 --- a/pkgs/development/interpreters/wasmtime/default.nix +++ b/pkgs/development/interpreters/wasmtime/default.nix @@ -36,6 +36,10 @@ rustPlatform.buildRustPackage rec { install -m0644 $src/crates/c-api/include/*.h $dev/include install -m0644 $src/crates/c-api/include/wasmtime/*.h $dev/include/wasmtime install -m0644 $src/crates/c-api/wasm-c-api/include/* $dev/include + '' + lib.optionalString stdenv.isDarwin '' + install_name_tool -id \ + $dev/lib/libwasmtime.dylib \ + $dev/lib/libwasmtime.dylib ''; meta = with lib; { |