1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 18:03:22 +00:00
nixpkgs/pkgs/tools/misc/upterm/default.nix
2021-03-13 16:29:21 +00:00

40 lines
906 B
Nix

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