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 {
|
2017-09-24 20:04:33 +01:00
|
|
|
name = "oath-toolkit-2.6.2";
|
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";
|
2017-09-24 20:04:33 +01:00
|
|
|
sha256 = "182ah8vfbg0yhv6mh1b6ap944d0na6x7lpfkwkmzb6jl9gx4cd5h";
|
2013-03-30 23:07:35 +00:00
|
|
|
};
|
|
|
|
|
2017-09-24 20:04:33 +01: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
|
|
|
};
|
|
|
|
}
|