From 68cb3535e129ea1715fee68449e43fbeaa16f34a Mon Sep 17 00:00:00 2001 From: LluĂ­s Batlle i Rossell Date: Mon, 25 Apr 2011 15:41:32 +0000 Subject: Making openssh cross-build. And making linux-pam almost cross-build, I think. This allows me to put sftp-server in the nanonote and use it through dropbear. svn path=/nixpkgs/trunk/; revision=26971 --- pkgs/os-specific/linux/pam/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'pkgs/os-specific/linux/pam') diff --git a/pkgs/os-specific/linux/pam/default.nix b/pkgs/os-specific/linux/pam/default.nix index 692643505e18..1e2d20c1edb5 100644 --- a/pkgs/os-specific/linux/pam/default.nix +++ b/pkgs/os-specific/linux/pam/default.nix @@ -8,11 +8,17 @@ stdenv.mkDerivation { sha256 = "015r3xdkjpqwcv4lvxavq0nybdpxhfjycqpzbx8agqd5sywkx3b0"; }; - buildInputs = [ flex cracklib ] + buildNativeInputs = [ flex ]; + buildInputs = [ cracklib ] ++ stdenv.lib.optional (stdenv.system != "armv5tel-linux" && stdenv.system != "mips64-linux") libxcrypt; + crossAttrs = { + # Skip libxcrypt cross-building, as it fails for mips and armv5tel + propagatedBuildInputs = [ flex.hostDrv cracklib.hostDrv ]; + }; + postInstall = '' mv -v $out/sbin/unix_chkpwd{,.orig} ln -sv /var/setuid-wrappers/unix_chkpwd $out/sbin/unix_chkpwd -- cgit 1.4.1