mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 01:51:24 +00:00
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
27 lines
768 B
Nix
27 lines
768 B
Nix
{ lib, stdenv, fetchurl, pkg-config, 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 = [ pkg-config ];
|
|
buildInputs = [ libfido2 pam openssl ];
|
|
|
|
preConfigure = ''
|
|
configureFlagsArray+=("--with-pam-dir=$out/lib/security")
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|