3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/autossh/default.nix

35 lines
1.2 KiB
Nix
Raw Normal View History

{stdenv, fetchurl, openssh}:
2015-03-09 18:26:35 +00:00
stdenv.mkDerivation rec {
2019-01-24 21:03:05 +00:00
name = "autossh-1.4g";
2019-03-16 15:53:49 +00:00
src = fetchurl {
2015-03-09 18:26:35 +00:00
url = "http://www.harding.motd.ca/autossh/${name}.tgz";
2019-01-24 21:03:05 +00:00
sha256 = "0xqjw8df68f4kzkns5gcah61s5wk0m44qdk2z1d6388w6viwxhsz";
};
2019-03-16 15:53:49 +00:00
preConfigure = ''
export ac_cv_func_malloc_0_nonnull=yes
export ac_cv_func_realloc_0_nonnull=yes
'';
nativeBuildInputs = [ 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
'';
2019-03-16 15:53:49 +00:00
2015-03-09 18:26:35 +00:00
meta = with stdenv.lib; {
homepage = https://www.harding.motd.ca/autossh/;
description = "Automatically restart SSH sessions and tunnels";
platforms = platforms.unix;
2015-03-09 18:26:35 +00:00
maintainers = with maintainers; [ pSub ];
};
}