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

25 lines
586 B
Nix
Raw Normal View History

2015-09-23 06:25:53 +02:00
{ stdenv, fetchurl, pam, xmlsec }:
2015-09-23 06:25:53 +02:00
let
securityDependency =
if stdenv.isDarwin then xmlsec
else pam;
in
stdenv.mkDerivation rec {
2016-06-11 22:05:53 +02:00
name = "oath-toolkit-2.6.1";
src = fetchurl {
url = "mirror://savannah/oath-toolkit/${name}.tar.gz";
2016-06-11 22:05:53 +02:00
sha256 = "0ybg0gnddmhxga0jwdipyz8jv5mxs0kiiflhvzffl9mw0wcq6mww";
};
2015-09-23 06:25:53 +02:00
buildInputs = [ securityDependency ];
meta = {
homepage = http://www.nongnu.org/oath-toolkit/;
description = "Components for building one-time password authentication systems";
2015-09-23 06:25:53 +02:00
platforms = with stdenv.lib.platforms; linux ++ darwin;
};
}