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 <otavio@ossystems.com.br>
This commit is contained in:
Otavio Salvador 2021-04-02 00:42:58 -03:00
parent c0e8818520
commit a3fa479eae

View File

@ -3,6 +3,8 @@
, fetchFromGitHub , fetchFromGitHub
, genericUpdater , genericUpdater
, common-updater-scripts , common-updater-scripts
, makeWrapper
, openssh
}: }:
buildGoModule rec { buildGoModule rec {
@ -31,6 +33,12 @@ buildGoModule rec {
}; };
}; };
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/agent --prefix PATH : ${lib.makeBinPath [ openssh ]}
'';
meta = with lib; { meta = with lib; {
description = description =
"Enables easy access any Linux device behind firewall and NAT"; "Enables easy access any Linux device behind firewall and NAT";