libtomcrypt: enable libtommath flags

This commit is contained in:
superherointj 2021-05-16 10:28:26 -03:00
parent c58b97674b
commit d0c9638dc4

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, fetchpatch, libtool }: { lib, stdenv, fetchurl, fetchpatch, libtool, libtommath }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libtomcrypt"; pname = "libtomcrypt";
@ -17,14 +17,16 @@ stdenv.mkDerivation rec {
}) })
]; ];
nativeBuildInputs = [ libtool ]; nativeBuildInputs = [ libtool libtommath ];
postPatch = '' postPatch = ''
substituteInPlace makefile.shared --replace "LT:=glibtool" "LT:=libtool" substituteInPlace makefile.shared --replace "LT:=glibtool" "LT:=libtool"
''; '';
preBuild = '' preBuild = ''
makeFlagsArray=(PREFIX=$out \ makeFlagsArray+=(PREFIX=$out \
CFLAGS="-DUSE_LTM -DLTM_DESC -DLTC_PTHREAD" \
EXTRALIBS=\"-ltommath\" \
INSTALL_GROUP=$(id -g) \ INSTALL_GROUP=$(id -g) \
INSTALL_USER=$(id -u)) INSTALL_USER=$(id -u))
''; '';