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 | Merge pull request #234757 from NixOS/backport-234739-to-release-23.05 (diff) | |
| parent | wasmtime: fix lib on darwin (diff) | |
| download | nixpkgs-8d245c250a50f3c8d052926211161d4bb5766922.tar.gz | |
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 58cde0e10138..cf6cc38e9bb3 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; { |
