7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
38 lines
878 B
Nix
38 lines
878 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, pkg-config
|
|
, asciidoc
|
|
, libxslt
|
|
, docbook_xsl
|
|
, pam
|
|
, yubikey-personalization
|
|
, libyubikey
|
|
, libykclient
|
|
, CoreServices
|
|
, SystemConfiguration
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "yubico-pam";
|
|
version = "2.27";
|
|
src = fetchFromGitHub {
|
|
owner = "Yubico";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0hb773zlf11xz4bwmsqv2mq5d4aq2g0crdr5cp9xwc4ivi5gd4kg";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config asciidoc libxslt docbook_xsl ];
|
|
buildInputs = [ pam yubikey-personalization libyubikey libykclient ]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices SystemConfiguration ];
|
|
|
|
meta = with lib; {
|
|
description = "Yubico PAM module";
|
|
mainProgram = "ykpamcfg";
|
|
homepage = "https://developers.yubico.com/yubico-pam";
|
|
license = licenses.bsd2;
|
|
maintainers = [ ];
|
|
};
|
|
}
|