Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,39 @@ | ||
{ stdenv, fetchgit, pam, xmlsec, autoconf, automake, libtool, pkgconfig, libxml2, gtkdoc, perl, gengetopt, bison, help2man }: | ||
{ stdenv, fetchFromGitLab, pam, xmlsec, autoreconfHook, pkgconfig, libxml2, gtkdoc, perl, gengetopt, bison, help2man }: | ||
|
||
let | ||
securityDependency = | ||
if stdenv.isDarwin then xmlsec | ||
else pam; | ||
in | ||
stdenv.mkDerivation rec { | ||
|
||
in stdenv.mkDerivation rec { | ||
name = "oath-toolkit-2.6.2"; | ||
|
||
src = fetchgit { | ||
url = "https://gitlab.com/oath-toolkit/oath-toolkit.git"; | ||
sha256 = "0n2sl444723f1k0sjmc0mzdwslx51yxac39c2cx2bl3ykacgfv74"; | ||
src = fetchFromGitLab { | ||
owner = "oath-toolkit"; | ||
repo = "oath-toolkit"; | ||
rev = "0dffdec9c5af5c89a5af43add29d8275eefe7414"; | ||
sha256 = "0n2sl444723f1k0sjmc0mzdwslx51yxac39c2cx2bl3ykacgfv74"; | ||
}; | ||
|
||
buildInputs = [ securityDependency automake autoconf libtool pkgconfig libxml2 gtkdoc perl gengetopt bison help2man ]; | ||
buildInputs = [ securityDependency libxml2 perl gengetopt bison ]; | ||
|
||
nativeBuildInputs = [ autoreconfHook gtkdoc help2man pkgconfig ]; | ||
|
||
# man file generation fails when true | ||
enableParallelBuilding = false; | ||
|
||
configureFlags = [ "--disable-pskc" ]; | ||
|
||
preConfigure = '' | ||
# Replicate the steps from cfg.mk | ||
printf "gdoc_MANS =\ngdoc_TEXINFOS =\n" > liboath/man/Makefile.gdoc | ||
printf "gdoc_MANS =\ngdoc_TEXINFOS =\n" > libpskc/man/Makefile.gdoc | ||
touch ChangeLog | ||
autoreconf --force --install | ||
# 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 | ||
''; | ||
|
||
meta = { | ||
homepage = http://www.nongnu.org/oath-toolkit/; | ||
meta = with stdenv.lib; { | ||
description = "Components for building one-time password authentication systems"; | ||
platforms = with stdenv.lib.platforms; linux ++ darwin; | ||
homepage = http://www.nongnu.org/oath-toolkit/; | ||
platforms = with platforms; linux ++ darwin; | ||
}; | ||
} |