nixpkgs/pkgs/tools/misc/upterm/default.nix

40 lines
906 B
Nix
Raw Normal View History

2021-02-07 20:21:13 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles }:
buildGoModule rec {
pname = "upterm";
2021-03-13 16:29:21 +00:00
version = "0.6.5";
2021-02-07 20:21:13 +00:00
src = fetchFromGitHub {
owner = "owenthereal";
repo = "upterm";
rev = "v${version}";
2021-03-13 16:29:21 +00:00
sha256 = "sha256-wzDK7iQN/z/M1mTKPCH3c+OjFsavplV/0oMiOe5thuI=";
2021-02-07 20:21:13 +00:00
};
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 ];
};
}