1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/os-specific/linux/pam_u2f/default.nix

30 lines
870 B
Nix
Raw Normal View History

2015-09-23 07:25:55 +01:00
{ stdenv, fetchurl, pkgconfig, libu2f-host, libu2f-server, pam }:
stdenv.mkDerivation rec {
name = "pam_u2f-${version}";
2016-01-29 18:45:23 +00:00
version = "1.0.4";
2015-09-23 07:25:55 +01:00
src = fetchurl {
url = "https://developers.yubico.com/pam-u2f/Releases/${name}.tar.gz";
2016-01-29 18:45:23 +00:00
sha256 = "189j0wgx6fs146vfp88djqpl1flpfb3962l1a2marlp6d12jwm3i";
};
2015-09-23 07:25:55 +01: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")
'';
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 ];
};
}