nixpkgs/pkgs/tools/networking/autossh/default.nix

29 lines
1.0 KiB
Nix
Raw Normal View History

{stdenv, fetchurl, openssh}:
stdenv.mkDerivation {
2013-12-12 01:30:14 +00:00
name = "autossh-1.4c";
src = fetchurl {
2013-12-12 01:30:14 +00:00
url = "http://www.harding.motd.ca/autossh/autossh-1.4c.tgz";
sha256 = "07gxqxfsk24msd0py0hirvmlblh9iyxkcrq86bwbsils81mbmjkg";
};
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 = {
homepage = http://www.harding.motd.ca/autossh/;
description = "Automatically restart SSH sessions and tunnels";
platforms = stdenv.lib.platforms.linux;
};
}