mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
3463f1deeb
svn path=/nixpkgs/trunk/; revision=8394
30 lines
643 B
Nix
30 lines
643 B
Nix
{ stdenv, fetchurl, zlib, openssl, perl
|
|
, pamSupport ? false, pam ? null
|
|
}:
|
|
|
|
assert pamSupport -> pam != null;
|
|
|
|
stdenv.mkDerivation {
|
|
name = "openssh-4.6p1";
|
|
|
|
src = fetchurl {
|
|
url = ftp://ftp.nluug.nl/pub/security/OpenSSH/openssh-4.6p1.tar.gz;
|
|
sha256 = "0fpjlr3bfind0y94bk442x2ps060byv1s4cnrgcxij40m9zjggkv";
|
|
};
|
|
|
|
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";
|
|
}
|