2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2022-12-02 08:20:57 +00:00
|
|
|
, perl
|
2022-08-12 12:06:08 +00:00
|
|
|
, libiconv
|
|
|
|
, openssl
|
|
|
|
, rustPlatform
|
|
|
|
, Security
|
|
|
|
, stdenv
|
|
|
|
, SystemConfiguration
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wapm-cli";
|
2022-12-02 08:20:57 +00:00
|
|
|
version = "0.5.9";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wasmerio";
|
|
|
|
repo = "wapm-cli";
|
|
|
|
rev = "v${version}";
|
2022-12-02 08:20:57 +00:00
|
|
|
sha256 = "sha256-T7YEe8xg5iwI/npisW0m+6FLi+eaAQVgYNe6TvMlhAs=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
cargoSha256 = "sha256-r4123NJ+nxNOVIg6svWr636xbxOJQ7tp76JoAi2m9p8=";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ perl ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|