2015-09-23 06:25:55 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libu2f-host, libu2f-server, pam }:
|
|
|
|
|
2015-05-03 14:29:42 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "pam_u2f";
|
2019-06-05 10:39:06 +00:00
|
|
|
version = "1.0.8";
|
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";
|
2019-06-05 10:39:06 +00:00
|
|
|
sha256 = "16awjzx348imjz141fzzldy00qpdmw2g37rnq430w5mnzak078jj";
|
2015-05-03 14:29:42 +00:00
|
|
|
};
|
|
|
|
|
2015-09-23 06:25:55 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libu2f-host libu2f-server pam ];
|
|
|
|
|
|
|
|
# Fix the broken include in 1.0.1
|
|
|
|
CFLAGS = "-I${libu2f-host}/include/u2f-host";
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
configureFlagsArray+=("--with-pam-dir=$out/lib/security")
|
|
|
|
'';
|
2015-05-03 14:29:42 +00:00
|
|
|
|
|
|
|
meta = with stdenv.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 ];
|
|
|
|
};
|
|
|
|
}
|