From a3fa479eae88e8ed7f1fd49fd71badca38fe0a15 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Fri, 2 Apr 2021 00:42:58 -0300 Subject: [PATCH] shellhub-agent: Fix scp support We need to have access to the scp binary so we can use it to the transfer of files or the file transfer fails to run. Signed-off-by: Otavio Salvador --- pkgs/applications/networking/shellhub-agent/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/applications/networking/shellhub-agent/default.nix b/pkgs/applications/networking/shellhub-agent/default.nix index 58ff92b5484..fa129baabc1 100644 --- a/pkgs/applications/networking/shellhub-agent/default.nix +++ b/pkgs/applications/networking/shellhub-agent/default.nix @@ -3,6 +3,8 @@ , fetchFromGitHub , genericUpdater , common-updater-scripts +, makeWrapper +, openssh }: buildGoModule rec { @@ -31,6 +33,12 @@ buildGoModule rec { }; }; + nativeBuildInputs = [ makeWrapper ]; + + postInstall = '' + wrapProgram $out/bin/agent --prefix PATH : ${lib.makeBinPath [ openssh ]} + ''; + meta = with lib; { description = "Enables easy access any Linux device behind firewall and NAT";