14 pname = "shellhub-agent";
17 src = fetchFromGitHub {
18 owner = "shellhub-io";
21 hash = "sha256-zMAAimFrOMcBVKuFwl/UpJLEWJHrjH7DNno5KCEvGrM=";
26 vendorHash = "sha256-jQNWuOwaAx//wDUVOrMc+ETWWbTCTp/SLwL2guERJB8=";
31 "-X main.AgentVersion=v${version}"
35 updateScript = nix-update-script { };
37 tests.version = testers.testVersion {
38 package = shellhub-agent;
39 command = "agent --version";
40 version = "v${version}";
44 nativeBuildInputs = [ makeWrapper ];
45 buildInputs = [ libxcrypt ];
48 wrapProgram $out/bin/agent --prefix PATH : ${lib.makeBinPath [ openssh ]}
52 description = "Enables easy access any Linux device behind firewall and NAT";
54 ShellHub is a modern SSH server for remotely accessing Linux devices via
55 command line (using any SSH client) or web-based user interface, designed
56 as an alternative to _sshd_. Think ShellHub as centralized SSH for the the
57 edge and cloud computing.
59 homepage = "https://shellhub.io/";
60 license = licenses.asl20;
61 maintainers = with maintainers; [ otavio ];
62 platforms = platforms.linux;
63 mainProgram = "agent";