02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
35 lines
790 B
Nix
35 lines
790 B
Nix
{ 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 ];
|
|
};
|
|
}
|