oath-toolkit: fix darwin build by disabling pam (#130301)

This commit is contained in:
Artturi 2021-07-16 04:06:00 +03:00 committed by GitHub
parent ff327f36db
commit d3ebf3bfa1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
{ lib, stdenv, fetchurl, pam, xmlsec }:
let
# TODO: Switch to OpenPAM once https://gitlab.com/oath-toolkit/oath-toolkit/-/issues/26 is addressed upstream
securityDependency =
if stdenv.isDarwin then xmlsec
else pam;
@ -16,6 +17,8 @@ in stdenv.mkDerivation rec {
buildInputs = [ securityDependency ];
configureFlags = lib.optionals stdenv.isDarwin [ "--disable-pam" ];
passthru.updateScript = ./update.sh;
meta = with lib; {