Merge pull request #314687 from uninsane/pr-pam-formatting

pam: packaging cleanups

authored by Jan Tojnar and committed by GitHub 71d96069 2cea0c50

+2 -10
+2 -10
pkgs/os-specific/linux/pam/default.nix
··· 18 18 ]; 19 19 20 20 # Case-insensitivity workaround for https://github.com/linux-pam/linux-pam/issues/569 21 - postPatch = if stdenv.buildPlatform.isDarwin && stdenv.buildPlatform != stdenv.hostPlatform then '' 21 + postPatch = lib.optionalString (stdenv.buildPlatform.isDarwin && stdenv.buildPlatform != stdenv.hostPlatform) '' 22 22 rm CHANGELOG 23 23 touch ChangeLog 24 - '' else null; 24 + ''; 25 25 26 26 outputs = [ "out" "doc" "man" /* "modules" */ ]; 27 27 ··· 35 35 ++ lib.optional stdenv.buildPlatform.isLinux audit; 36 36 37 37 enableParallelBuilding = true; 38 - 39 - preConfigure = lib.optionalString (stdenv.hostPlatform.libc == "musl") '' 40 - # export ac_cv_search_crypt=no 41 - # (taken from Alpine linux, apparently insecure but also doesn't build O:)) 42 - # disable insecure modules 43 - # sed -e 's/pam_rhosts//g' -i modules/Makefile.am 44 - sed -e 's/pam_rhosts//g' -i modules/Makefile.in 45 - ''; 46 38 47 39 configureFlags = [ 48 40 "--includedir=${placeholder "out"}/include/security"