Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autossh: fix for cross compilation #57825

Merged
merged 1 commit into from
Mar 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions pkgs/tools/networking/autossh/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@

stdenv.mkDerivation rec {
name = "autossh-1.4g";

src = fetchurl {
url = "http://www.harding.motd.ca/autossh/${name}.tgz";
sha256 = "0xqjw8df68f4kzkns5gcah61s5wk0m44qdk2z1d6388w6viwxhsz";
};

buildInputs = [ openssh ];


preConfigure = ''
export ac_cv_func_malloc_0_nonnull=yes
export ac_cv_func_realloc_0_nonnull=yes
roberth marked this conversation as resolved.
Show resolved Hide resolved
'';

nativeBuildInputs = [ openssh ];

installPhase =
''
install -D -m755 autossh $out/bin/autossh || return 1
Expand All @@ -19,7 +24,7 @@ stdenv.mkDerivation rec {
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";
Expand Down