2020-10-16 20:44:37 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libfido2, pam, openssl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pam_u2f";
|
2020-10-16 20:44:37 +00:00
|
|
|
version = "1.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://developers.yubico.com/pam-u2f/Releases/${pname}-${version}.tar.gz";
|
2020-10-16 20:44:37 +00:00
|
|
|
sha256 = "01fwbrfnjkv93vvqm54jywdcxa1p7d4r32azicwnx75nxfbbzhqd";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2020-10-16 20:44:37 +00:00
|
|
|
buildInputs = [ libfido2 pam openssl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
configureFlagsArray+=("--with-pam-dir=$out/lib/security")
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://developers.yubico.com/pam-u2f/";
|
|
|
|
description = "A PAM module for allowing authentication with a U2F device";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ philandstuff ];
|
|
|
|
};
|
|
|
|
}
|