38 lines
960 B
Nix
38 lines
960 B
Nix
![]() |
{
|
||
|
lib,
|
||
|
rustPlatform,
|
||
|
fetchFromGitHub,
|
||
|
versionCheckHook,
|
||
|
nix-update-script,
|
||
|
}:
|
||
|
|
||
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||
|
pname = "wkg";
|
||
|
version = "0.11.0";
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "bytecodealliance";
|
||
|
repo = "wasm-pkg-tools";
|
||
|
tag = "v${finalAttrs.version}";
|
||
|
hash = "sha256-l8ArzujFirquSKMDkcoP8KukLFCRB7U8BejzMGUD59Y=";
|
||
|
};
|
||
|
|
||
|
cargoHash = "sha256-ngVnF2eLZfa4ziliAaJOmu5YbnetEovH66kWXp2w1gY=";
|
||
|
|
||
|
# A large number of tests require Internet access in order to function.
|
||
|
doCheck = false;
|
||
|
|
||
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
||
|
doInstallCheck = true;
|
||
|
versionCheckProgramArg = "--version";
|
||
|
|
||
|
passthru.updateScript = nix-update-script { };
|
||
|
|
||
|
meta = {
|
||
|
description = "Tools to package up WASM Components";
|
||
|
homepage = "https://github.com/bytecodealliance/wasm-pkg-tools";
|
||
|
license = lib.licenses.asl20;
|
||
|
maintainers = with lib.maintainers; [ water-sucks ];
|
||
|
mainProgram = "wkg";
|
||
|
};
|
||
|
})
|