nixpkgs/pkgs/tools/misc/upterm/default.nix
Felix Singer be99d5c1d5 upterm: 0.7.3 -> 0.8.2
Update upterm to version 0.8.2 and also use Go version 1.18 since this
is the minimum required version.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2022-05-07 14:39:22 +02:00

40 lines
910 B
Nix

{ lib
, buildGo118Module
, fetchFromGitHub
, installShellFiles
}:
buildGo118Module rec {
pname = "upterm";
version = "0.8.2";
src = fetchFromGitHub {
owner = "owenthereal";
repo = "upterm";
rev = "v${version}";
hash = "sha256-JcUFsj7+Hu++izyxozttyxTGW51vBfgNSvAa/AIrsvs=";
};
vendorSha256 = null;
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
$out/bin/gendoc
rm $out/bin/gendoc
installManPage etc/man/man*/*
installShellCompletion --bash --name upterm.bash etc/completion/upterm.bash_completion.sh
installShellCompletion --zsh --name _upterm etc/completion/upterm.zsh_completion
'';
doCheck = true;
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Secure terminal-session sharing";
homepage = "https://upterm.dev";
license = licenses.asl20;
maintainers = with maintainers; [ hax404 ];
};
}