Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / container2wasm / default.nix
blob633baceb589ad20f6054bd8c27cf6552630e7e42
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "container2wasm";
8   version = "0.5.1";
10   src = fetchFromGitHub {
11     owner = "ktock";
12     repo = "container2wasm";
13     rev = "refs/tags/v${version}";
14     hash = "sha256-ba40Nu2tVrRSvVeGxlrn0Bw+xQqWeli40lwBWOXSNTA=";
15   };
17   vendorHash = "sha256-tyfLWmxAzFc0JuSem8L0HPG4wy9Gxdp8F/J3DyOx6rQ=";
19   ldflags = [
20     "-s"
21     "-w"
22     "-X=github.com/ktock/container2wasm/version.Version=${version}"
23   ];
25   subPackages = [
26     "cmd/c2w"
27   ];
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   };