mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
aba04eb8af
This release switches to libfido2 and libcrypto instead of libu2f-host and libu2f-server.
27 lines
768 B
Nix
27 lines
768 B
Nix
{ stdenv, fetchurl, pkgconfig, libfido2, pam, openssl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pam_u2f";
|
|
version = "1.1.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://developers.yubico.com/pam-u2f/Releases/${pname}-${version}.tar.gz";
|
|
sha256 = "01fwbrfnjkv93vvqm54jywdcxa1p7d4r32azicwnx75nxfbbzhqd";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ libfido2 pam openssl ];
|
|
|
|
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 ];
|
|
};
|
|
}
|