strongswan: build xauth-pam module

+6 -4
+6 -4
pkgs/tools/networking/strongswan/default.nix
··· 1 1 { stdenv, fetchurl, gmp, pkgconfig, python, autoreconfHook 2 2 , curl, trousers, sqlite, iptables, libxml2, openresolv 3 - , ldns, unbound, pcsclite, openssl, systemd 3 + , ldns, unbound, pcsclite, openssl, systemd, pam 4 4 , enableTNC ? false }: 5 5 6 6 stdenv.mkDerivation rec { ··· 14 14 15 15 dontPatchELF = true; 16 16 17 + nativeBuildInputs = [ pkgconfig autoreconfHook ]; 17 18 buildInputs = 18 - [ gmp pkgconfig python autoreconfHook iptables ldns unbound openssl pcsclite systemd.dev ] 19 - ++ stdenv.lib.optionals enableTNC [ curl trousers sqlite libxml2 ]; 19 + [ gmp python iptables ldns unbound openssl pcsclite ] 20 + ++ stdenv.lib.optionals enableTNC [ curl trousers sqlite libxml2 ] 21 + ++ stdenv.lib.optionals stdenv.isLinux [ systemd.dev pam ]; 20 22 21 23 patches = [ 22 24 ./ext_auth-path.patch ··· 48 50 "--enable-eap-mschapv2" "--enable-xauth-eap" "--enable-ext-auth" 49 51 "--enable-forecast" "--enable-connmark" "--enable-acert" 50 52 "--enable-pkcs11" "--enable-eap-sim-pcsc" "--enable-dnscert" "--enable-unbound" 51 - "--enable-af-alg" ] 53 + "--enable-af-alg" "--enable-xauth-pam" ] 52 54 ++ stdenv.lib.optional stdenv.isx86_64 [ "--enable-aesni" "--enable-rdrand" ] 53 55 ++ stdenv.lib.optional (stdenv.system == "i686-linux") "--enable-padlock" 54 56 ++ stdenv.lib.optionals enableTNC [