2015-09-23 05:25:53 +01:00
|
|
|
{ stdenv, fetchurl, pam, xmlsec }:
|
2013-03-30 23:07:35 +00:00
|
|
|
|
2015-09-23 05:25:53 +01:00
|
|
|
let
|
|
|
|
securityDependency =
|
|
|
|
if stdenv.isDarwin then xmlsec
|
|
|
|
else pam;
|
|
|
|
in
|
2013-03-30 23:07:35 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-11-04 09:22:46 +00:00
|
|
|
name = "oath-toolkit-2.4.1";
|
2013-03-30 23:07:35 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-07-14 03:23:06 +01:00
|
|
|
url = "mirror://savannah/oath-toolkit/${name}.tar.gz";
|
2014-11-04 09:22:46 +00:00
|
|
|
sha256 = "094vbq66sn5f2dsy14hajpsfdnaivjxf70xzs91nrsq0q75l5ylv";
|
2013-03-30 23:07:35 +00:00
|
|
|
};
|
|
|
|
|
2015-09-23 05:25:53 +01:00
|
|
|
|
|
|
|
buildInputs = [ securityDependency ];
|
2013-03-30 23:07:35 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.nongnu.org/oath-toolkit/;
|
|
|
|
description = "Components for building one-time password authentication systems";
|
2015-09-23 05:25:53 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
2013-03-30 23:07:35 +00:00
|
|
|
};
|
|
|
|
}
|