nixpkgs/pkgs/tools/networking/openssh/default.nix
Eelco Dolstra 35a9f7ecb6 * Remove the xauth dependency in openssh. We can set the xauth path
in sshd_config.

svn path=/nixpkgs/trunk/; revision=7547
2007-01-07 10:18:34 +00:00

30 lines
639 B
Nix

{ stdenv, fetchurl, zlib, openssl, perl
, pamSupport ? false, pam ? null
}:
assert pamSupport -> pam != null;
stdenv.mkDerivation {
name = "openssh-4.5p1";
src = fetchurl {
url = ftp://sunsite.cnlab-switch.ch/pub/OpenBSD/OpenSSH/portable/openssh-4.5p1.tar.gz;
md5 = "6468c339886f78e8a149b88f695839dd";
};
buildInputs = [zlib openssl perl
(if pamSupport then pam else null)
];
configureFlags = "
${if pamSupport then "--with-pam" else ""}
";
preConfigure = "
configureFlags=\"$configureFlags --with-privsep-path=$out/empty\"
ensureDir $out/empty
";
installTargets = "install-nokeys";
}