1{ lib
2, buildGoModule
3, fetchFromGitHub
4}:
5
6buildGoModule rec {
7 pname = "container2wasm";
8 version = "0.6.4";
9
10 src = fetchFromGitHub {
11 owner = "ktock";
12 repo = "container2wasm";
13 rev = "refs/tags/v${version}";
14 hash = "sha256-/E65h2kyzjtAnh72+zyxXf8OvxlUvXT/M25CPteUamE=";
15 };
16
17 vendorHash = "sha256-/V2n9SpBtJVQwERJhSugvAvIoOGuZNnhaaf8k9hh04k=";
18
19 ldflags = [
20 "-s"
21 "-w"
22 "-X=github.com/ktock/container2wasm/version.Version=${version}"
23 ];
24
25 subPackages = [
26 "cmd/c2w"
27 ];
28
29 meta = with lib; {
30 description = "Container to WASM converter";
31 homepage = "https://github.com/ktock/container2wasm";
32 changelog = "https://github.com/ktock/container2wasm/releases/tag/v${version}";
33 license = licenses.asl20;
34 maintainers = with maintainers; [ dit7ya ];
35 mainProgram = "c2w";
36 };
37}