mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
44 lines
978 B
Nix
44 lines
978 B
Nix
{ lib
|
|
, buildGo118Module
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
, nixosTests
|
|
}:
|
|
|
|
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;
|
|
|
|
passthru.tests = { inherit (nixosTests) uptermd; };
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = with lib; {
|
|
description = "Secure terminal-session sharing";
|
|
homepage = "https://upterm.dev";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ hax404 ];
|
|
};
|
|
}
|