nixpkgs/pkgs/os-specific/linux/pam_u2f/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
913 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config, libfido2, pam, openssl }:
2015-09-23 06:25:55 +00:00
stdenv.mkDerivation rec {
pname = "pam_u2f";
2021-12-08 14:14:57 +00:00
version = "1.2.0";
2015-09-23 06:25:55 +00:00
src = fetchurl {
url = "https://developers.yubico.com/pam-u2f/Releases/${pname}-${version}.tar.gz";
2021-12-08 14:14:57 +00:00
sha256 = "sha256-IwPm+Zsf3o7jw6sopN4tpt3SJclTaT6EXWstg4giH7M=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libfido2 pam openssl ];
2015-09-23 06:25:55 +00:00
preConfigure = ''
configureFlagsArray+=("--with-pam-dir=$out/lib/security")
'';
# a no-op makefile to prevent building the fuzz targets
postConfigure = ''
cat > fuzz/Makefile <<EOF
all:
install:
EOF
'';
meta = with 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 ];
};
}