depot/third_party/nixpkgs/pkgs/development/tools/container2wasm/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

37 lines
834 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "container2wasm";
version = "0.5.3";
src = fetchFromGitHub {
owner = "ktock";
repo = "container2wasm";
rev = "refs/tags/v${version}";
hash = "sha256-ttRl7buVi0bei3zqq1smzLOEdsgtaFdS/S9VIcMgF8w=";
};
vendorHash = "sha256-m2KBO14vwSgYkw2aE2AIbkk91dzb83B9n3QSx4YGiME=";
ldflags = [
"-s"
"-w"
"-X=github.com/ktock/container2wasm/version.Version=${version}"
];
subPackages = [
"cmd/c2w"
];
meta = with lib; {
description = "Container to WASM converter";
homepage = "https://github.com/ktock/container2wasm";
changelog = "https://github.com/ktock/container2wasm/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ dit7ya ];
mainProgram = "c2w";
};
}