Closed jbg closed 3 years ago
test this
diff --git a/pkgs/tools/security/oath-toolkit/default.nix b/pkgs/tools/security/oath-toolkit/default.nix
index a925d07cb7c..fd6a938b2f2 100644
--- a/pkgs/tools/security/oath-toolkit/default.nix
+++ b/pkgs/tools/security/oath-toolkit/default.nix
@@ -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
securityDependency =
if stdenv.isDarwin then xmlsec
else pam;
@@ -16,6 +17,8 @@ in stdenv.mkDerivation rec {
buildInputs = [ securityDependency ];
+ configureFlags = lib.optional stdenv.isDarwin [ "--disable-pam" ];
+
passthru.updateScript = ./update.sh;
meta = with lib; {
Yup, works.
The
oath-toolkit
package doesn't build on Darwin due to a dependency onpam_modutil.h
which doesn't exist in OpenPAM:There is an upstream issue to potentially replace the use of functions from
pam_modutil.h
with something else on platforms where it doesn't exist.Based on this, I think the intention is not to use PAM on Darwin anyway:
So a reasonable fix could be simply to pass
--disable-pam
when building on Darwin, which solves the build failure.Notify maintainers @schnusch
Metadata
Maintainer information: