mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
upterm: 0.20.0 -> 0.24.0
For the changelogs refer to: - https://github.com/owenthereal/upterm/releases/tag/v0.24.0 - https://github.com/owenthereal/upterm/releases/tag/v0.23.0 - https://github.com/owenthereal/upterm/releases/tag/v0.22.0 - https://github.com/owenthereal/upterm/releases/tag/v0.21.1 - https://github.com/owenthereal/upterm/releases/tag/v0.21.0 This also updates the corresponding NixOS tests for the current CA handling and SSH command output format.
This commit is contained in:
parent
b30be69cad
commit
dfd908e838
2 changed files with 9 additions and 4 deletions
|
|
@ -21,6 +21,11 @@ in
|
|||
enable = true;
|
||||
openFirewall = true;
|
||||
port = 1337;
|
||||
# required to match certificate principals
|
||||
extraFlags = [
|
||||
"--hostname"
|
||||
"server"
|
||||
];
|
||||
};
|
||||
};
|
||||
client1 = client;
|
||||
|
|
@ -58,7 +63,7 @@ in
|
|||
client2.execute("ssh-keygen -t ed25519 -N \"\" -f /root/.ssh/id_ed25519")
|
||||
|
||||
# Grep the ssh connect command from the output of 'upterm host'
|
||||
ssh_command = client1.succeed("grep 'SSH Command' /tmp/session-details | awk -F'│' '{print $3}'").strip()
|
||||
ssh_command = client1.succeed("grep -m1 '^[[:space:]]*ssh' /tmp/session-details").strip()
|
||||
|
||||
# Connect with client2. Because we used '--force-command hostname' we should get "client1" as the output
|
||||
output = client2.succeed(ssh_command)
|
||||
|
|
|
|||
|
|
@ -10,16 +10,16 @@
|
|||
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "upterm";
|
||||
version = "0.20.0";
|
||||
version = "0.24.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "owenthereal";
|
||||
repo = "upterm";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-qTw8bYROAAB7FwKCCQamIbWGbqSexXl87DdvSNsFZ/I=";
|
||||
hash = "sha256-b52Rny6mYkmfF6Umn2tzlnUhNkENHPFpCzp55OWj92w=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-5OAS7s9A95h5LihXgOwkOXAMylS7g+lqjaI3MKTvlW0=";
|
||||
vendorHash = "sha256-UkZnLbxn0dPT43ycuevcwMw0dXnX1OPHLh5F1XMHWDI=";
|
||||
|
||||
subPackages = [
|
||||
"cmd/upterm"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue