diff --git a/pkgs/tools/networking/assh/default.nix b/pkgs/tools/networking/assh/default.nix index bbed205cce85..1de87e07e049 100644 --- a/pkgs/tools/networking/assh/default.nix +++ b/pkgs/tools/networking/assh/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, buildGoPackage, fetchFromGitHub }: +{ stdenv, lib, buildGoPackage, fetchFromGitHub, openssh, makeWrapper }: buildGoPackage rec { name = "assh-${version}"; @@ -7,8 +7,13 @@ buildGoPackage rec { goPackagePath = "github.com/moul/advanced-ssh-config"; subPackages = [ "cmd/assh" ]; + nativeBuildInputs = [ makeWrapper ]; + postInstall = stdenv.lib.optionalString (stdenv.isDarwin) '' install_name_tool -delete_rpath $out/lib $bin/bin/assh + '' + '' + wrapProgram "$bin/bin/assh" \ + --prefix PATH : ${openssh}/bin ''; src = fetchFromGitHub {