Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
38 lines
976 B
Nix
38 lines
976 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
nix-update-script,
|
|
pam,
|
|
xmlsec,
|
|
}:
|
|
|
|
let
|
|
# TODO: Switch to OpenPAM once https://gitlab.com/oath-toolkit/oath-toolkit/-/issues/26 is addressed upstream
|
|
securityDependency = if stdenv.hostPlatform.isDarwin then xmlsec else pam;
|
|
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "oath-toolkit";
|
|
version = "2.6.13";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://savannah/${pname}/${pname}-${version}.tar.gz";
|
|
hash = "sha256-W12C6aRFUgbST8vX7li/THk5ii5nmX2AvUWuknWGsYs=";
|
|
};
|
|
|
|
buildInputs = [ securityDependency ];
|
|
|
|
configureFlags = lib.optionals stdenv.hostPlatform.isDarwin [ "--disable-pam" ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
description = "Components for building one-time password authentication systems";
|
|
homepage = "https://www.nongnu.org/oath-toolkit/";
|
|
maintainers = with maintainers; [ schnusch ];
|
|
platforms = with platforms; linux ++ darwin;
|
|
mainProgram = "oathtool";
|
|
};
|
|
}
|