mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
bb3a2aa8eb
Tested it out just now - seems like it works fine.
29 lines
1.1 KiB
Nix
29 lines
1.1 KiB
Nix
{stdenv, fetchurl, openssh}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "autossh-1.4e";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.harding.motd.ca/autossh/${name}.tgz";
|
|
sha256 = "0mlicw28vq2jxa0jf0dys5ja75v0fxpjavlq9dpif6bnknji13ly";
|
|
};
|
|
|
|
buildInputs = [ openssh ];
|
|
|
|
installPhase =
|
|
''
|
|
install -D -m755 autossh $out/bin/autossh || return 1
|
|
install -D -m644 CHANGES $out/share/doc/autossh/CHANGES || return 1
|
|
install -D -m644 README $out/share/doc/autossh/README || return 1
|
|
install -D -m644 autossh.host $out/share/autossh/examples/autossh.host || return 1
|
|
install -D -m644 rscreen $out/share/autossh/examples/rscreen || return 1
|
|
install -D -m644 autossh.1 $out/man/man1/autossh.1 || return 1
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://www.harding.motd.ca/autossh/;
|
|
description = "Automatically restart SSH sessions and tunnels";
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ pSub ];
|
|
};
|
|
}
|