mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
25 lines
586 B
Nix
25 lines
586 B
Nix
{ stdenv, fetchurl, pam, xmlsec }:
|
|
|
|
let
|
|
securityDependency =
|
|
if stdenv.isDarwin then xmlsec
|
|
else pam;
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "oath-toolkit-2.4.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://savannah/oath-toolkit/${name}.tar.gz";
|
|
sha256 = "094vbq66sn5f2dsy14hajpsfdnaivjxf70xzs91nrsq0q75l5ylv";
|
|
};
|
|
|
|
|
|
buildInputs = [ securityDependency ];
|
|
|
|
meta = {
|
|
homepage = http://www.nongnu.org/oath-toolkit/;
|
|
description = "Components for building one-time password authentication systems";
|
|
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
|
};
|
|
}
|