mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
39 lines
877 B
Nix
39 lines
877 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "container2wasm";
|
|
version = "0.8.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "container2wasm";
|
|
repo = "container2wasm";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-vmEof0mcvBau/eYtUj5DzzZm5QgkM3G6TsG8doLju78=";
|
|
};
|
|
|
|
vendorHash = "sha256-Lg8gvbnyEcrwDGPiHrB7NR4waB2/yqyQbZsp/pQK0jc=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=github.com/container2wasm/container2wasm/version.Version=${finalAttrs.version}"
|
|
];
|
|
|
|
subPackages = [
|
|
"cmd/c2w"
|
|
];
|
|
|
|
meta = {
|
|
description = "Container to WASM converter";
|
|
homepage = "https://github.com/container2wasm/container2wasm";
|
|
changelog = "https://github.com/container2wasm/container2wasm/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ ];
|
|
mainProgram = "c2w";
|
|
};
|
|
})
|