From 717f05b6ce2885c8fbb422305f94af20554ce442 Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Sat, 30 Jul 2022 19:33:33 +0200 Subject: [PATCH] wapm-cli: init at 0.5.5 (#183477) Co-authored-by: Sandro --- .../package-management/wapm/cli/default.nix | 35 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 39 insertions(+) create mode 100644 pkgs/tools/package-management/wapm/cli/default.nix diff --git a/pkgs/tools/package-management/wapm/cli/default.nix b/pkgs/tools/package-management/wapm/cli/default.nix new file mode 100644 index 000000000000..b71bb166ea8b --- /dev/null +++ b/pkgs/tools/package-management/wapm/cli/default.nix @@ -0,0 +1,35 @@ +{ lib +, fetchFromGitHub +, libiconv +, openssl +, rustPlatform +, Security +, stdenv +, SystemConfiguration +}: + +rustPlatform.buildRustPackage rec { + pname = "wapm-cli"; + version = "0.5.5"; + + src = fetchFromGitHub { + owner = "wasmerio"; + repo = "wapm-cli"; + rev = "v${version}"; + sha256 = "sha256-BKBd1tJwV4VOjRnAx/spQy3LIXzujrO2SS5eA1uybNA="; + }; + + cargoSha256 = "sha256-dv04AXOnzizjq/qx3qy524ylQHgE4gIBgeYI+2IRTug="; + + buildInputs = [ libiconv openssl ] + ++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration ]; + + doCheck = false; + + meta = with lib; { + description = "A package manager for WebAssembly modules"; + homepage = "https://docs.wasmer.io/ecosystem/wapm"; + license = with licenses; [ mit ]; + maintainers = [ maintainers.lucperkins ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ab51047fb39b..0c7fe5c02fed 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15109,6 +15109,10 @@ with pkgs; trealla = callPackage ../development/interpreters/trealla { }; + wapm-cli = callPackage ../tools/package-management/wapm/cli { + inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration; + }; + wasm = ocamlPackages.wasm; wasm3 = callPackage ../development/interpreters/wasm3 { };