depot/third_party/nixpkgs/pkgs/development/tools/container2wasm/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

37 lines
834 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "container2wasm";
version = "0.6.4";
src = fetchFromGitHub {
owner = "ktock";
repo = "container2wasm";
rev = "refs/tags/v${version}";
hash = "sha256-/E65h2kyzjtAnh72+zyxXf8OvxlUvXT/M25CPteUamE=";
};
vendorHash = "sha256-/V2n9SpBtJVQwERJhSugvAvIoOGuZNnhaaf8k9hh04k=";
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";
};
}