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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
978 B
Nix
Raw Normal View History

2021-02-07 20:21:13 +00:00
{ lib
, buildGo118Module
2021-02-07 20:21:13 +00:00
, fetchFromGitHub
, installShellFiles
2022-03-17 16:57:23 +00:00
, nixosTests
}:
2021-02-07 20:21:13 +00:00
buildGo118Module rec {
2021-02-07 20:21:13 +00:00
pname = "upterm";
version = "0.8.2";
2021-02-07 20:21:13 +00:00
src = fetchFromGitHub {
owner = "owenthereal";
repo = "upterm";
rev = "v${version}";
hash = "sha256-JcUFsj7+Hu++izyxozttyxTGW51vBfgNSvAa/AIrsvs=";
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;
2022-03-17 16:57:23 +00:00
passthru.tests = { inherit (nixosTests) uptermd; };
2021-02-07 20:21:13 +00:00
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Secure terminal-session sharing";
homepage = "https://upterm.dev";
license = licenses.asl20;
maintainers = with maintainers; [ hax404 ];
};
}