oath-toolkit: fix darwin build by disabling pam (#130301)
This commit is contained in:
parent
ff327f36db
commit
d3ebf3bfa1
1 changed files with 3 additions and 0 deletions
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue