diff options
author | Philip Potter <philip.g.potter@gmail.com> | 2015-05-03 15:29:42 +0100 |
---|---|---|
committer | Philip Potter <philip.g.potter@gmail.com> | 2015-05-03 19:22:00 +0100 |
commit | 22167289794c080c50f092274de808543c7978c4 (patch) | |
tree | 990249295189b7e6ef0a2b215fbd0e2b4c15ae61 /pkgs/os-specific/linux/pam_u2f | |
parent | 0f8203d120dc0bd88b205b5f6ed5409d6b1e06ac (diff) |
add support for pam_u2f to nixos pam module
This adds support for authenticating using a U2F device such as a yubikey neo.
Diffstat (limited to 'pkgs/os-specific/linux/pam_u2f')
-rw-r--r-- | pkgs/os-specific/linux/pam_u2f/default.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/pam_u2f/default.nix b/pkgs/os-specific/linux/pam_u2f/default.nix new file mode 100644 index 0000000000000..458d171ec683b --- /dev/null +++ b/pkgs/os-specific/linux/pam_u2f/default.nix @@ -0,0 +1,22 @@ +{ pkgs, fetchurl, stdenv }: +stdenv.mkDerivation rec { + name = "pam_u2f-${version}"; + version = "0.0.1"; + src = fetchurl { + url = "https://developers.yubico.com/pam-u2f/Releases/${name}.tar.gz"; + sha256 = "0p1wia4nfw5h0pmy1lcgwsbrlm7z39v1n37692lgqfzyg1kmpv7l"; + }; + buildInputs = with pkgs; [ asciidoc autoconf automake docbook_xml_dtd_45 libtool libu2f-host libu2f-server libxml2 libxslt pkgconfig pam ]; + + installFlags = [ + "PAMDIR=$(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 ]; + }; +} |