1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-27 16:11:58 +00:00
nixpkgs/pkgs/os-specific/linux/pam_u2f/default.nix
R. RyanTM b0989d3c76 pam_u2f: 1.0.5 -> 1.0.6
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/pam_u2f/versions.

These checks were done:

- built on NixOS
- ran ‘/nix/store/diyxvz87ashi10zx97b0dyl2hsr6f9bh-pam_u2f-1.0.6/bin/pamu2fcfg -h’ got 0 exit code
- ran ‘/nix/store/diyxvz87ashi10zx97b0dyl2hsr6f9bh-pam_u2f-1.0.6/bin/pamu2fcfg --help’ got 0 exit code
- ran ‘/nix/store/diyxvz87ashi10zx97b0dyl2hsr6f9bh-pam_u2f-1.0.6/bin/pamu2fcfg -V’ and found version 1.0.6
- ran ‘/nix/store/diyxvz87ashi10zx97b0dyl2hsr6f9bh-pam_u2f-1.0.6/bin/pamu2fcfg --version’ and found version 1.0.6
- found 1.0.6 with grep in /nix/store/diyxvz87ashi10zx97b0dyl2hsr6f9bh-pam_u2f-1.0.6
- directory tree listing: https://gist.github.com/7d4bb96a876d359bc67f88a024a674f8
2018-04-30 13:49:46 -07:00

30 lines
870 B
Nix

{ stdenv, fetchurl, pkgconfig, libu2f-host, libu2f-server, pam }:
stdenv.mkDerivation rec {
name = "pam_u2f-${version}";
version = "1.0.6";
src = fetchurl {
url = "https://developers.yubico.com/pam-u2f/Releases/${name}.tar.gz";
sha256 = "0fpdb49596zywnbx1cfcx1k83rbs1ylhi1cnn25pq9d3b92hj50h";
};
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 ];
};
}