mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
oathToolkit: Support darwin
This commit is contained in:
parent
df665ded7e
commit
22e57d6f26
@ -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;
|
||||
};
|
||||
}
|
||||
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user