2008-08-12 20:57:35 +01:00
|
|
|
{stdenv, fetchurl, libtool}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2016-07-18 10:49:44 +01:00
|
|
|
name = "libtommath-1.0";
|
2008-08-12 20:57:35 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-07-18 10:49:44 +01:00
|
|
|
url = https://github.com/libtom/libtommath/releases/download/v1.0/ltm-1.0.tar.xz;
|
|
|
|
sha256 = "0v5mpd8zqjfs2hr900w1mxifz23xylyjdqyx1i1wl7q9xvwpsflr";
|
2008-08-12 20:57:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [libtool];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray=(LIBPATH=$out/lib INCPATH=$out/include \
|
|
|
|
DATAPATH=$out/share/doc/libtommath/pdf \
|
|
|
|
INSTALL_GROUP=$(id -g) \
|
|
|
|
INSTALL_USER=$(id -u))
|
|
|
|
'';
|
|
|
|
|
|
|
|
makefile = "makefile.shared";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://math.libtomcrypt.com/;
|
|
|
|
description = "A library for integer-based number-theoretic applications";
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2008-08-12 20:57:35 +01:00
|
|
|
};
|
|
|
|
}
|