2021-05-03 20:48:10 +00:00
|
|
|
{ lib, stdenv, fetchurl, pam, xmlsec }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
securityDependency =
|
|
|
|
if stdenv.isDarwin then xmlsec
|
|
|
|
else pam;
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "oath-toolkit";
|
|
|
|
version = "2.6.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://savannah/${pname}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0v4lrgip08b8xlivsfn3mwql3nv8hmcpzrn6pi3xp88vqwav6s7x";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
buildInputs = [ securityDependency ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Components for building one-time password authentication systems";
|
|
|
|
homepage = "https://www.nongnu.org/oath-toolkit/";
|
2021-05-03 20:48:10 +00:00
|
|
|
maintainers = with maintainers; [ schnusch ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
|
|
|
};
|
|
|
|
}
|