summary refs log tree commit diff
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorLluís Batlle i Rossell2010-06-04 12:13:09 +0000
committerLluís Batlle i Rossell2010-06-04 12:13:09 +0000
commit477258855385687c7e415b110d3b1f4cd4092a37 (patch)
tree48ddc85f5fd10691296defab3064a1d8efbc29d6 /pkgs/os-specific
parent18f565e2902ad18cc1d8b64cdb3fcd963f830fc8 (diff)
Disabling libxcrypt on armv5tel-linux (it does not build trivially). As a consequence,
we will end up having MD5 passwords in passwd. pam_unix will fallback to md5 if the requested
hash algorithm is not available in crypt.

svn path=/nixpkgs/trunk/; revision=22141
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/linux/pam/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/pam/default.nix b/pkgs/os-specific/linux/pam/default.nix
index a06f3975b27d..59c2deab47f8 100644
--- a/pkgs/os-specific/linux/pam/default.nix
+++ b/pkgs/os-specific/linux/pam/default.nix
@@ -8,7 +8,8 @@ stdenv.mkDerivation {
     sha256 = "015r3xdkjpqwcv4lvxavq0nybdpxhfjycqpzbx8agqd5sywkx3b0";
   };
 
-  buildInputs = [ flex cracklib libxcrypt ];
+  buildInputs = [ flex cracklib ]
+    ++ stdenv.lib.optional (stdenv.system != "armv5tel-linux") libxcrypt;
 
   preConfigure = ''
     configureFlags="$configureFlags --includedir=$out/include/security"