oathToolkit: Support darwin

This commit is contained in:
Allan Espinosa 2015-09-23 13:25:53 +09:00
parent df665ded7e
commit 22e57d6f26
2 changed files with 10 additions and 4 deletions

View File

@ -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;
};
}

View File

@ -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;
};
}