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 {
|
2016-06-11 21:05:53 +01:00
|
|
|
name = "oath-toolkit-2.6.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";
|
2016-06-11 21:05:53 +01:00
|
|
|
sha256 = "0ybg0gnddmhxga0jwdipyz8jv5mxs0kiiflhvzffl9mw0wcq6mww";
|
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
|
|
|
};
|
|
|
|
}
|