assh: add openssh to PATH

This commit is contained in:
Jörg Thalheim 2017-09-21 23:03:55 +01:00
parent 334dfc3086
commit 81569ecd72

View File

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