pam_p11: fix on darwin

This commit is contained in:
Dmitry Kalinkin 2022-02-20 17:01:55 -05:00
parent bf3b862b94
commit 377cfd903b
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, openssl, libp11, pam }:
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, openssl, libp11, pam, libintl }:
stdenv.mkDerivation rec {
pname = "pam_p11";
@ -12,7 +12,8 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ pam openssl libp11 ];
buildInputs = [ pam openssl libp11 ]
++ lib.optionals stdenv.isDarwin [ libintl ];
meta = with lib; {
homepage = "https://github.com/OpenSC/pam_p11";