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

25 lines
584 B
Nix
Raw Normal View History

2015-09-23 04:25:53 +00:00
{ stdenv, fetchurl, pam, xmlsec }:
2015-09-23 04:25:53 +00:00
let
securityDependency =
if stdenv.isDarwin then xmlsec
else pam;
in
stdenv.mkDerivation rec {
2017-09-24 19:04:33 +00:00
name = "oath-toolkit-2.6.2";
src = fetchurl {
url = "mirror://savannah/oath-toolkit/${name}.tar.gz";
2017-09-24 19:04:33 +00:00
sha256 = "182ah8vfbg0yhv6mh1b6ap944d0na6x7lpfkwkmzb6jl9gx4cd5h";
};
2017-09-24 19:04:33 +00:00
2015-09-23 04:25:53 +00:00
buildInputs = [ securityDependency ];
meta = {
homepage = http://www.nongnu.org/oath-toolkit/;
description = "Components for building one-time password authentication systems";
2015-09-23 04:25:53 +00:00
platforms = with stdenv.lib.platforms; linux ++ darwin;
};
}