94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
34 lines
995 B
Nix
34 lines
995 B
Nix
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libp11, pam, libintl, fetchpatch }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pam_p11";
|
|
version = "0.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OpenSC";
|
|
repo = "pam_p11";
|
|
rev = "pam_p11-${version}";
|
|
sha256 = "1caidy18rq5zk82d51x8vwidmkhwmanf3qm25x1yrdlbhxv6m7lk";
|
|
};
|
|
|
|
patches = [
|
|
# fix with openssl 3.x
|
|
(fetchpatch {
|
|
url = "https://github.com/OpenSC/pam_p11/pull/22.patch";
|
|
excludes = [ ".github/build.sh" ];
|
|
hash = "sha256-bm/agnBgvrr8L8yoGK4gzBqOGgsNWf9NIgcNJG7proE=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
buildInputs = [ pam libp11.passthru.openssl libp11 ]
|
|
++ lib.optionals stdenv.isDarwin [ libintl ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/OpenSC/pam_p11";
|
|
description = "Authentication with PKCS#11 modules";
|
|
license = licenses.lgpl21Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ sb0 ];
|
|
};
|
|
}
|