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 {
2016-06-11 21:05:53 +01:00
name = "oath-toolkit-2.6.1";
src = fetchurl {
url = "mirror://savannah/oath-toolkit/${name}.tar.gz";
2016-06-11 21:05:53 +01:00
sha256 = "0ybg0gnddmhxga0jwdipyz8jv5mxs0kiiflhvzffl9mw0wcq6mww";
};
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;
};
}