2021-04-27 19:49:18 +01:00
|
|
|
{ lib, 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;
|
2018-02-25 08:05:42 +00:00
|
|
|
|
2021-04-27 19:49:18 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "oath-toolkit";
|
|
|
|
version = "2.6.6";
|
2013-03-30 23:07:35 +00:00
|
|
|
|
2021-04-27 19:49:18 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://savannah/${pname}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0v4lrgip08b8xlivsfn3mwql3nv8hmcpzrn6pi3xp88vqwav6s7x";
|
2013-03-30 23:07:35 +00:00
|
|
|
};
|
|
|
|
|
2021-04-27 19:49:18 +01:00
|
|
|
buildInputs = [ securityDependency ];
|
2013-03-30 23:07:35 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2013-03-30 23:07:35 +00:00
|
|
|
description = "Components for building one-time password authentication systems";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.nongnu.org/oath-toolkit/";
|
2021-04-27 19:49:18 +01:00
|
|
|
maintainers = with maintainers; [ schnusch ];
|
2018-02-25 08:05:42 +00:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2013-03-30 23:07:35 +00:00
|
|
|
};
|
|
|
|
}
|