1 {lib, stdenv, fetchurl, openssh}:
3 stdenv.mkDerivation rec {
8 url = "http://www.harding.motd.ca/autossh/${pname}-${version}.tgz";
9 sha256 = "0xqjw8df68f4kzkns5gcah61s5wk0m44qdk2z1d6388w6viwxhsz";
13 export ac_cv_func_malloc_0_nonnull=yes
14 export ac_cv_func_realloc_0_nonnull=yes
17 nativeBuildInputs = [ openssh ];
20 install -D -m755 autossh $out/bin/autossh || return 1
21 install -D -m644 CHANGES $out/share/doc/autossh/CHANGES || return 1
22 install -D -m644 README $out/share/doc/autossh/README || return 1
23 install -D -m644 autossh.host $out/share/autossh/examples/autossh.host || return 1
24 install -D -m644 rscreen $out/share/autossh/examples/rscreen || return 1
25 install -D -m644 autossh.1 $out/man/man1/autossh.1 || return 1
29 homepage = "https://www.harding.motd.ca/autossh/";
30 description = "Automatically restart SSH sessions and tunnels";
31 license = licenses.bsd1;
32 platforms = platforms.unix;
33 maintainers = with maintainers; [ pSub ];