summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-05-30 06:51:30 +0300
committerGitHub <noreply@github.com>2023-05-30 06:51:30 +0300
commit8d245c250a50f3c8d052926211161d4bb5766922 (patch)
tree0fadbc7e5d8a879de6cc426496bcf3b03f931b78 /pkgs/development
parentdda46f49cfc989d90f4cb04d5687cca1ef96743c (diff)
parent1c4f95355196d2a9ea0de0140b75e78dc6b626f8 (diff)
Merge pull request #234919 from NixOS/backport-234873-to-release-23.05
[Backport release-23.05] wasmtime: fix lib on darwin
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/interpreters/wasmtime/default.nix4
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; {