mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
34ce871bbd
Diff: https://github.com/tetratelabs/wazero/compare/v1.3.1...v1.4.0 Changelog: https://github.com/tetratelabs/wazero/releases/tag/v1.4.0
51 lines
1014 B
Nix
51 lines
1014 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, testers
|
|
, wazero
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "wazero";
|
|
version = "1.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tetratelabs";
|
|
repo = "wazero";
|
|
rev = "v${version}";
|
|
hash = "sha256-Yn5mg/K+RT6CoW1vMrpvRFOao83IAZE1mP+DGp4SmKk=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
subPackages = [
|
|
"cmd/wazero"
|
|
];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=github.com/tetratelabs/wazero/internal/version.version=${version}"
|
|
];
|
|
|
|
checkFlags = [
|
|
# fails when version is specified
|
|
"-skip=TestCompile|TestRun"
|
|
];
|
|
|
|
passthru.tests = {
|
|
version = testers.testVersion {
|
|
package = wazero;
|
|
command = "wazero version";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "A zero dependency WebAssembly runtime for Go developers";
|
|
homepage = "https://github.com/tetratelabs/wazero";
|
|
changelog = "https://github.com/tetratelabs/wazero/releases/tag/${src.rev}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
};
|
|
}
|