mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
bb898dbc89
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 - /nix/store/ny1mv10yj3az2yjn25sla3aybl550rwi-pam_u2f-1.0.7/bin/pamu2fcfg passed the binary check. - 1 of 1 passed binary check by having a zero exit code. - 1 of 1 passed binary check by having the new version present in output. - found 1.0.7 with grep in /nix/store/ny1mv10yj3az2yjn25sla3aybl550rwi-pam_u2f-1.0.7 - directory tree listing: https://gist.github.com/7da727fb06490bc549a719fda2ada9ab - du listing: https://gist.github.com/a984153d959e953899879d365ffc7852
30 lines
870 B
Nix
30 lines
870 B
Nix
{ stdenv, fetchurl, pkgconfig, libu2f-host, libu2f-server, pam }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pam_u2f-${version}";
|
|
version = "1.0.7";
|
|
|
|
src = fetchurl {
|
|
url = "https://developers.yubico.com/pam-u2f/Releases/${name}.tar.gz";
|
|
sha256 = "1kz7d3vr5dag1d5zq14kcp887p5d0q079dy1sqyl8ndi567asjh3";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|