Skip to content

Commit

Permalink
mosh: Install bash-completion rule
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information
andersk authored and bjornfor committed Dec 19, 2017
1 parent 1d7f90c commit 58fd771
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/tools/networking/mosh/default.nix
@@ -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";
Expand All @@ -10,14 +10,16 @@ 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 = ''
substituteInPlace scripts/mosh.pl \
--subst-var-by ssh "${openssh}/bin/ssh"
'';

configureFlags = [ "--enable-completion" ];

postInstall = ''
wrapProgram $out/bin/mosh --prefix PERL5LIB : $PERL5LIB
'';
Expand Down

0 comments on commit 58fd771

Please sign in to comment.