bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
38 lines
866 B
Nix
38 lines
866 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, perl
|
|
, libiconv
|
|
, openssl
|
|
, rustPlatform
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "wapm-cli";
|
|
version = "0.5.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wasmerio";
|
|
repo = "wapm-cli";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-T7YEe8xg5iwI/npisW0m+6FLi+eaAQVgYNe6TvMlhAs=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-r4123NJ+nxNOVIg6svWr636xbxOJQ7tp76JoAi2m9p8=";
|
|
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
buildInputs = [ libiconv openssl ]
|
|
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Security SystemConfiguration ]);
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Package manager for WebAssembly modules";
|
|
mainProgram = "wapm";
|
|
homepage = "https://docs.wasmer.io/ecosystem/wapm";
|
|
license = with licenses; [ mit ];
|
|
maintainers = [ maintainers.lucperkins ];
|
|
};
|
|
}
|