Unverified Commit 92c3f8cf authored by Theodore Ni's avatar Theodore Ni Committed by GitHub
Browse files

wasmer: 5.0.0 -> 5.0.1 (#354116)

parents 5c44f6f7 de8c3feb
Loading
Loading
Loading
Loading
+24 −24
Original line number Diff line number Diff line
{ stdenv
, lib
, rustPlatform
, fetchFromGitHub
, llvmPackages
, libffi
, libxml2
, CoreFoundation
, SystemConfiguration
, Security
, withLLVM ? !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64)
, withSinglepass ? true
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  llvmPackages,
  libffi,
  libxml2,
  withLLVM ? true,
  withSinglepass ? true,
}:

rustPlatform.buildRustPackage rec {
  pname = "wasmer";
  version = "5.0.0";
  version = "5.0.1";

  src = fetchFromGitHub {
    owner = "wasmerio";
    repo = pname;
    rev = "refs/tags/v${version}";
    hash = "sha256-zTz4UK+A4HWf+XGaTh7FOUFEeB9JnZooFnxZ4K3AFGw=";
    hash = "sha256-tfAGPBc36o5/XtVZ8IW6SFr+iWOkFzVTfe9jI4PpuA0=";
  };

  cargoHash = "sha256-YSnGGd2uIxvhxDTJjtQMdv4Qx1DE7RA05Z+q4emJAKg=";
  cargoHash = "sha256-zvQJpAjZNfa54se2xaRPWCWoCWsWw1btaHYrWlyUIZY=";

  nativeBuildInputs = [
    rustPlatform.bindgenHook
@@ -33,10 +30,6 @@ rustPlatform.buildRustPackage rec {
    llvmPackages.llvm
    libffi
    libxml2
  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
    CoreFoundation
    SystemConfiguration
    Security
  ];

  # check references to `compiler_features` in Makefile on update
@@ -46,11 +39,14 @@ rustPlatform.buildRustPackage rec {
    "static-artifact-create"
    "wasmer-artifact-load"
    "static-artifact-load"
  ]
  ++ lib.optional withLLVM "llvm"
  ++ lib.optional withSinglepass "singlepass";
  ] ++ lib.optional withLLVM "llvm" ++ lib.optional withSinglepass "singlepass";

  cargoBuildFlags = [ "--manifest-path" "lib/cli/Cargo.toml" "--bin" "wasmer" ];
  cargoBuildFlags = [
    "--manifest-path"
    "lib/cli/Cargo.toml"
    "--bin"
    "wasmer"
  ];

  env.LLVM_SYS_180_PREFIX = lib.optionalString withLLVM llvmPackages.llvm.dev;

@@ -69,6 +65,10 @@ rustPlatform.buildRustPackage rec {
    homepage = "https://wasmer.io/";
    license = lib.licenses.mit;
    platforms = with lib.platforms; linux ++ darwin;
    maintainers = with lib.maintainers; [ Br1ght0ne shamilton nickcao ];
    maintainers = with lib.maintainers; [
      Br1ght0ne
      shamilton
      nickcao
    ];
  };
}
+0 −1
Original line number Diff line number Diff line
@@ -19013,7 +19013,6 @@ with pkgs;
  wasmer = callPackage ../development/interpreters/wasmer {
    llvmPackages = llvmPackages_18;
    inherit (darwin.apple_sdk.frameworks) CoreFoundation SystemConfiguration Security;
  };
  wavm = callPackage ../development/interpreters/wavm {