diff --git a/pkgs/development/libraries/xmlsec/default.nix b/pkgs/development/libraries/xmlsec/default.nix index 3fba451c711..85e2f08b31d 100644 --- a/pkgs/development/libraries/xmlsec/default.nix +++ b/pkgs/development/libraries/xmlsec/default.nix @@ -19,6 +19,6 @@ stdenv.mkDerivation rec { homepage = http://www.aleksey.com/xmlsec; description = "XML Security Library in C based on libxml2"; license = stdenv.lib.licenses.mit; - platforms = stdenv.lib.platforms.linux; + platforms = with stdenv.lib.platforms; linux ++ darwin; }; } diff --git a/pkgs/tools/security/oath-toolkit/default.nix b/pkgs/tools/security/oath-toolkit/default.nix index 8f96a5067d1..216ce3d2336 100644 --- a/pkgs/tools/security/oath-toolkit/default.nix +++ b/pkgs/tools/security/oath-toolkit/default.nix @@ -1,5 +1,10 @@ -{ stdenv, fetchurl, pam }: +{ stdenv, fetchurl, pam, xmlsec }: +let + securityDependency = + if stdenv.isDarwin then xmlsec + else pam; +in stdenv.mkDerivation rec { name = "oath-toolkit-2.4.1"; @@ -8,11 +13,12 @@ stdenv.mkDerivation rec { sha256 = "094vbq66sn5f2dsy14hajpsfdnaivjxf70xzs91nrsq0q75l5ylv"; }; - buildInputs = [ pam ]; + + buildInputs = [ securityDependency ]; meta = { homepage = http://www.nongnu.org/oath-toolkit/; description = "Components for building one-time password authentication systems"; - platforms = stdenv.lib.platforms.linux; + platforms = with stdenv.lib.platforms; linux ++ darwin; }; }