nixpkgs/pkgs/tools/security/oath-toolkit/default.nix

31 lines
888 B
Nix
Raw Normal View History

2021-04-27 18:49:18 +00:00
{ lib, stdenv, fetchurl, pam, xmlsec }:
2015-09-23 04:25:53 +00:00
let
# TODO: Switch to OpenPAM once https://gitlab.com/oath-toolkit/oath-toolkit/-/issues/26 is addressed upstream
2015-09-23 04:25:53 +00:00
securityDependency =
if stdenv.isDarwin then xmlsec
else pam;
2018-02-25 08:05:42 +00:00
2021-04-27 18:49:18 +00:00
in stdenv.mkDerivation rec {
pname = "oath-toolkit";
version = "2.6.7";
2021-04-27 18:49:18 +00:00
src = fetchurl {
url = "mirror://savannah/${pname}/${pname}-${version}.tar.gz";
sha256 = "1aa620k05lsw3l3slkp2mzma40q3p9wginspn9zk8digiz7dzv9n";
};
2021-04-27 18:49:18 +00:00
buildInputs = [ securityDependency ];
configureFlags = lib.optionals stdenv.isDarwin [ "--disable-pam" ];
passthru.updateScript = ./update.sh;
meta = with lib; {
description = "Components for building one-time password authentication systems";
homepage = "https://www.nongnu.org/oath-toolkit/";
2021-04-27 18:49:18 +00:00
maintainers = with maintainers; [ schnusch ];
2018-02-25 08:05:42 +00:00
platforms = with platforms; linux ++ darwin;
};
}