autossh: fix for cross compilation
This commit is contained in:
parent
33e9fa2367
commit
f17231ba57
@ -2,14 +2,19 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "autossh-1.4g";
|
name = "autossh-1.4g";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://www.harding.motd.ca/autossh/${name}.tgz";
|
url = "http://www.harding.motd.ca/autossh/${name}.tgz";
|
||||||
sha256 = "0xqjw8df68f4kzkns5gcah61s5wk0m44qdk2z1d6388w6viwxhsz";
|
sha256 = "0xqjw8df68f4kzkns5gcah61s5wk0m44qdk2z1d6388w6viwxhsz";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ openssh ];
|
preConfigure = ''
|
||||||
|
export ac_cv_func_malloc_0_nonnull=yes
|
||||||
|
export ac_cv_func_realloc_0_nonnull=yes
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ openssh ];
|
||||||
|
|
||||||
installPhase =
|
installPhase =
|
||||||
''
|
''
|
||||||
install -D -m755 autossh $out/bin/autossh || return 1
|
install -D -m755 autossh $out/bin/autossh || return 1
|
||||||
@ -19,7 +24,7 @@ stdenv.mkDerivation rec {
|
|||||||
install -D -m644 rscreen $out/share/autossh/examples/rscreen || 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
|
install -D -m644 autossh.1 $out/man/man1/autossh.1 || return 1
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://www.harding.motd.ca/autossh/;
|
homepage = http://www.harding.motd.ca/autossh/;
|
||||||
description = "Automatically restart SSH sessions and tunnels";
|
description = "Automatically restart SSH sessions and tunnels";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user