pam_p11: fix on darwin

+3 -2
+3 -2
pkgs/os-specific/linux/pam_p11/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, openssl, libp11, pam }: 2 3 stdenv.mkDerivation rec { 4 pname = "pam_p11"; ··· 12 }; 13 14 nativeBuildInputs = [ autoreconfHook pkg-config ]; 15 - buildInputs = [ pam openssl libp11 ]; 16 17 meta = with lib; { 18 homepage = "https://github.com/OpenSC/pam_p11";
··· 1 + { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, openssl, libp11, pam, libintl }: 2 3 stdenv.mkDerivation rec { 4 pname = "pam_p11"; ··· 12 }; 13 14 nativeBuildInputs = [ autoreconfHook pkg-config ]; 15 + buildInputs = [ pam openssl libp11 ] 16 + ++ lib.optionals stdenv.isDarwin [ libintl ]; 17 18 meta = with lib; { 19 homepage = "https://github.com/OpenSC/pam_p11";