1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/tools/security/oath-toolkit/default.nix

40 lines
1.1 KiB
Nix
Raw Normal View History

2018-02-25 08:05:42 +00:00
{ stdenv, fetchFromGitLab, pam, xmlsec, autoreconfHook, pkgconfig, libxml2, gtkdoc, perl, gengetopt, bison, help2man }:
2015-09-23 05:25:53 +01:00
let
securityDependency =
if stdenv.isDarwin then xmlsec
else pam;
2018-02-25 08:05:42 +00:00
in stdenv.mkDerivation rec {
2017-09-24 20:04:33 +01:00
name = "oath-toolkit-2.6.2";
2018-02-25 08:05:42 +00:00
src = fetchFromGitLab {
owner = "oath-toolkit";
repo = "oath-toolkit";
rev = "0dffdec9c5af5c89a5af43add29d8275eefe7414";
2018-02-25 08:05:42 +00:00
sha256 = "0n2sl444723f1k0sjmc0mzdwslx51yxac39c2cx2bl3ykacgfv74";
};
2018-02-25 08:05:42 +00:00
buildInputs = [ securityDependency libxml2 perl gengetopt bison ];
nativeBuildInputs = [ autoreconfHook gtkdoc help2man pkgconfig ];
# man file generation fails when true
enableParallelBuilding = false;
2017-09-24 20:04:33 +01:00
configureFlags = [ "--disable-pskc" ];
2018-02-25 08:05:42 +00:00
# Replicate the steps from cfg.mk
preAutoreconf = ''
printf "gdoc_MANS =\ngdoc_TEXINFOS =\n" > liboath/man/Makefile.gdoc
printf "gdoc_MANS =\ngdoc_TEXINFOS =\n" > libpskc/man/Makefile.gdoc
touch ChangeLog
'';
2018-02-25 08:05:42 +00:00
meta = with stdenv.lib; {
description = "Components for building one-time password authentication systems";
2018-02-25 08:05:42 +00:00
homepage = http://www.nongnu.org/oath-toolkit/;
platforms = with platforms; linux ++ darwin;
};
}