1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 14:41:17 +00:00
nixpkgs/pkgs/tools/security/oath-toolkit/default.nix

25 lines
586 B
Nix
Raw Normal View History

2015-09-23 05:25:53 +01:00
{ stdenv, fetchurl, pam, xmlsec }:
2015-09-23 05:25:53 +01:00
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";
};
2015-09-23 05:25:53 +01:00
buildInputs = [ securityDependency ];
meta = {
homepage = http://www.nongnu.org/oath-toolkit/;
description = "Components for building one-time password authentication systems";
2015-09-23 05:25:53 +01:00
platforms = with stdenv.lib.platforms; linux ++ darwin;
};
}