biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / extism-cli / default.nix
blobf683338c69ab3004a10b655c003039d70fb58495
2   lib
3 , buildGoModule
4 , fetchFromGitHub
5 , installShellFiles
6 }:
8 buildGoModule rec {
9   pname = "extism-cli";
10   version = "1.2.0";
12   src = fetchFromGitHub {
13     owner = "extism";
14     repo = "cli";
15     rev = "refs/tags/v${version}";
16     hash = "sha256-xQtCg1U2wwH2zSWPyIfGLluATi8hYQVWy6lxgD6BDNA=";
17   };
19   modRoot = "./extism";
21   vendorHash = "sha256-toDT9zpe/5QOCoPl/DFxdNsQDCkat06T3UHbCY+sW+A=";
23   nativeBuildInputs = [ installShellFiles ];
25   doCheck = false; # Tests require network access
27   postInstall = ''
28     local INSTALL="$out/bin/extism"
29     installShellCompletion --cmd extism \
30       --bash <($out/bin/containerlab completion bash) \
31       --fish <($out/bin/containerlab completion fish) \
32       --zsh <($out/bin/containerlab completion zsh)
33   '';
35   meta = with lib; {
36     description = "The extism CLI is used to manage Extism installations";
37     homepage = "https://github.com/extism/cli";
38     license = licenses.bsd3;
39     maintainers = with maintainers; [ zshipko ];
40     mainProgram = "extism";
41     platforms = platforms.all;
42   };