Unverified Commit fc0ef762 authored by winston's avatar winston
Browse files

wasmtime: copy nested c-api header files

parent 422d591b
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -59,14 +59,8 @@ rustPlatform.buildRustPackage (finalAttrs: {
      rm -r ''${!outputLib}/lib

      # copy the build.rs generated c-api headers
      install -d -m0755 $dev/include/wasmtime
      # https://github.com/rust-lang/cargo/issues/9661
      install -m0644 \
        target/${cargoShortTarget}/release/build/wasmtime-c-api-impl-*/out/include/*.h \
        $dev/include
      install -m0644 \
        target/${cargoShortTarget}/release/build/wasmtime-c-api-impl-*/out/include/wasmtime/*.h \
        $dev/include/wasmtime
      cp -r target/${cargoShortTarget}/release/build/wasmtime-c-api-impl-*/out/include $dev/include
    ''
    + lib.optionalString stdenv.hostPlatform.isDarwin ''
      install_name_tool -id \