Merge pull request #10013 from aespinosa/oath-toolkit-on-darwin
oathToolkit: Support darwin
This commit is contained in:
commit
f0717273a7
|
@ -19,6 +19,6 @@ stdenv.mkDerivation rec {
|
||||||
homepage = http://www.aleksey.com/xmlsec;
|
homepage = http://www.aleksey.com/xmlsec;
|
||||||
description = "XML Security Library in C based on libxml2";
|
description = "XML Security Library in C based on libxml2";
|
||||||
license = stdenv.lib.licenses.mit;
|
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 {
|
stdenv.mkDerivation rec {
|
||||||
name = "oath-toolkit-2.4.1";
|
name = "oath-toolkit-2.4.1";
|
||||||
|
|
||||||
|
@ -8,11 +13,12 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "094vbq66sn5f2dsy14hajpsfdnaivjxf70xzs91nrsq0q75l5ylv";
|
sha256 = "094vbq66sn5f2dsy14hajpsfdnaivjxf70xzs91nrsq0q75l5ylv";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pam ];
|
|
||||||
|
buildInputs = [ securityDependency ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://www.nongnu.org/oath-toolkit/;
|
homepage = http://www.nongnu.org/oath-toolkit/;
|
||||||
description = "Components for building one-time password authentication systems";
|
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