2021-08-25 08:27:29 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, asciidoc
|
|
|
|
, libxslt
|
|
|
|
, docbook_xsl
|
|
|
|
, pam
|
|
|
|
, yubikey-personalization
|
|
|
|
, libyubikey
|
|
|
|
, libykclient
|
2024-04-21 15:54:59 +00:00
|
|
|
, CoreServices
|
|
|
|
, SystemConfiguration
|
2021-08-25 08:27:29 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "yubico-pam";
|
2021-08-25 08:27:29 +00:00
|
|
|
version = "2.27";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Yubico";
|
|
|
|
repo = pname;
|
2021-08-25 08:27:29 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "0hb773zlf11xz4bwmsqv2mq5d4aq2g0crdr5cp9xwc4ivi5gd4kg";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config asciidoc libxslt docbook_xsl ];
|
2024-04-21 15:54:59 +00:00
|
|
|
buildInputs = [ pam yubikey-personalization libyubikey libykclient ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ CoreServices SystemConfiguration ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Yubico PAM module";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ykpamcfg";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://developers.yubico.com/yubico-pam";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|