2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, libfido2, pam, openssl }:
|
2015-09-23 06:25:55 +00:00
|
|
|
|
2015-05-03 14:29:42 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "pam_u2f";
|
2020-10-11 19:15:54 +00:00
|
|
|
version = "1.1.0";
|
2015-09-23 06:25:55 +00:00
|
|
|
|
2015-05-03 14:29:42 +00:00
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://developers.yubico.com/pam-u2f/Releases/${pname}-${version}.tar.gz";
|
2020-10-11 19:15:54 +00:00
|
|
|
sha256 = "01fwbrfnjkv93vvqm54jywdcxa1p7d4r32azicwnx75nxfbbzhqd";
|
2015-05-03 14:29:42 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-10-11 19:15:54 +00:00
|
|
|
buildInputs = [ libfido2 pam openssl ];
|
2015-09-23 06:25:55 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
configureFlagsArray+=("--with-pam-dir=$out/lib/security")
|
|
|
|
'';
|
2015-05-03 14:29:42 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://developers.yubico.com/pam-u2f/";
|
2015-05-03 14:29:42 +00:00
|
|
|
description = "A PAM module for allowing authentication with a U2F device";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ philandstuff ];
|
|
|
|
};
|
|
|
|
}
|