3
0
Fork 0
forked from mirrors/nixpkgs

mosh: Install bash-completion rule

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg 2017-12-19 07:37:06 -05:00 committed by Bjørn Forsman
parent 1d7f90cba2
commit 58fd7719ea

View file

@ -1,5 +1,5 @@
{ stdenv, fetchurl, zlib, protobuf, ncurses, pkgconfig, IOTty
, makeWrapper, perl, openssl, autoreconfHook, openssh }:
, makeWrapper, perl, openssl, autoreconfHook, openssh, bash-completion }:
stdenv.mkDerivation rec {
name = "mosh-1.3.2";
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ protobuf ncurses zlib IOTty makeWrapper perl openssl ];
buildInputs = [ protobuf ncurses zlib IOTty makeWrapper perl openssl bash-completion ];
patches = [ ./ssh_path.patch ];
postPatch = ''
@ -18,6 +18,8 @@ stdenv.mkDerivation rec {
--subst-var-by ssh "${openssh}/bin/ssh"
'';
configureFlags = [ "--enable-completion" ];
postInstall = ''
wrapProgram $out/bin/mosh --prefix PERL5LIB : $PERL5LIB
'';