depot/third_party/nixpkgs/pkgs/development/tools/container2wasm/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

37 lines
834 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "container2wasm";
version = "0.5.1";
src = fetchFromGitHub {
owner = "ktock";
repo = "container2wasm";
rev = "refs/tags/v${version}";
hash = "sha256-ba40Nu2tVrRSvVeGxlrn0Bw+xQqWeli40lwBWOXSNTA=";
};
vendorHash = "sha256-tyfLWmxAzFc0JuSem8L0HPG4wy9Gxdp8F/J3DyOx6rQ=";
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";
};
}