mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
47dc10cb7d
* upterm: 0.6.7 -> 0.6.8 (#160843) * upterm: 0.6.8 -> 0.7.3 Co-authored-by: Renaud <c0bw3b@users.noreply.github.com>
41 lines
904 B
Nix
41 lines
904 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "upterm";
|
|
version = "0.7.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "owenthereal";
|
|
repo = "upterm";
|
|
rev = "v${version}";
|
|
hash = "sha256-eEzFqKYhsG5e1DVLWJq08NM9xyfn1yPNV0NIgOErj4E=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|