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