linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / tools / misc / upterm / default.nix
blob2f504a0cef8c3fea7681084be899572437eb59a2
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , installShellFiles }:
6 buildGoModule rec {
7   pname = "upterm";
8   version = "0.6.5";
10   src = fetchFromGitHub {
11     owner = "owenthereal";
12     repo = "upterm";
13     rev = "v${version}";
14     sha256 = "sha256-wzDK7iQN/z/M1mTKPCH3c+OjFsavplV/0oMiOe5thuI=";
15   };
17   vendorSha256 = null;
19   nativeBuildInputs = [ installShellFiles ];
21   postInstall = ''
22     $out/bin/gendoc
23     rm $out/bin/gendoc
24     installManPage etc/man/man*/*
25     installShellCompletion --bash --name upterm.bash etc/completion/upterm.bash_completion.sh
26     installShellCompletion --zsh --name _upterm etc/completion/upterm.zsh_completion
27   '';
29   doCheck = true;
31   __darwinAllowLocalNetworking = true;
33   meta = with lib; {
34     description = "Secure terminal-session sharing";
35     homepage = "https://upterm.dev";
36     license = licenses.asl20;
37     maintainers = with maintainers; [ hax404 ];
38   };