Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
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 = [ ];
|
|
};
|
|
}
|