summary refs log tree commit diff
path: root/pkgs/os-specific/linux/pam
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2011-04-25 15:41:32 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2011-04-25 15:41:32 +0000
commit68cb3535e129ea1715fee68449e43fbeaa16f34a (patch)
treec2ae9d63c8b0850904d99543e711984b3a46305d /pkgs/os-specific/linux/pam
parent06c5e488049869a90d1a19322b883c75b5232e41 (diff)
downloadnixlib-68cb3535e129ea1715fee68449e43fbeaa16f34a.tar
nixlib-68cb3535e129ea1715fee68449e43fbeaa16f34a.tar.gz
nixlib-68cb3535e129ea1715fee68449e43fbeaa16f34a.tar.bz2
nixlib-68cb3535e129ea1715fee68449e43fbeaa16f34a.tar.lz
nixlib-68cb3535e129ea1715fee68449e43fbeaa16f34a.tar.xz
nixlib-68cb3535e129ea1715fee68449e43fbeaa16f34a.tar.zst
nixlib-68cb3535e129ea1715fee68449e43fbeaa16f34a.zip
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
Diffstat (limited to 'pkgs/os-specific/linux/pam')
-rw-r--r--pkgs/os-specific/linux/pam/default.nix8
1 files changed, 7 insertions, 1 deletions
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