2022-03-05 16:20:37 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, openssl, libp11, pam, libintl }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pam_p11";
|
|
|
|
version = "0.3.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenSC";
|
|
|
|
repo = "pam_p11";
|
|
|
|
rev = "pam_p11-${version}";
|
|
|
|
sha256 = "1caidy18rq5zk82d51x8vwidmkhwmanf3qm25x1yrdlbhxv6m7lk";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2022-03-05 16:20:37 +00:00
|
|
|
buildInputs = [ pam openssl libp11 ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ libintl ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-08-20 17:08:02 +00:00
|
|
|
homepage = "https://github.com/OpenSC/pam_p11";
|
|
|
|
description = "Authentication with PKCS#11 modules";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ sb0 ];
|
|
|
|
};
|
|
|
|
}
|