nixpkgs/pkgs/os-specific/linux/pam_u2f/default.nix
R. RyanTM 31797abd55 pam_u2f: 1.0.4 -> 1.0.5
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/w4zrfq02p2ssbk391n380g8bm1fy8ai7-pam_u2f-1.0.5/bin/pamu2fcfg -h’ got 0 exit code
- ran ‘/nix/store/w4zrfq02p2ssbk391n380g8bm1fy8ai7-pam_u2f-1.0.5/bin/pamu2fcfg --help’ got 0 exit code
- ran ‘/nix/store/w4zrfq02p2ssbk391n380g8bm1fy8ai7-pam_u2f-1.0.5/bin/pamu2fcfg -V’ and found version 1.0.5
- ran ‘/nix/store/w4zrfq02p2ssbk391n380g8bm1fy8ai7-pam_u2f-1.0.5/bin/pamu2fcfg --version’ and found version 1.0.5
- found 1.0.5 with grep in /nix/store/w4zrfq02p2ssbk391n380g8bm1fy8ai7-pam_u2f-1.0.5
- directory tree listing: https://gist.github.com/63aa3c566fe3d6ad7704e45ee7e969fc
2018-04-20 01:40:08 -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.5";
src = fetchurl {
url = "https://developers.yubico.com/pam-u2f/Releases/${name}.tar.gz";
sha256 = "0bbwy9k3002anhkv67zwck3dry7blqnnp291dc4qsjrca0blw217";
};
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 ];
};
}