git.iko.soy/typeable/nixpkgs
on master help sign in
libtomcrypt: enable libtommath flags
commitd0c9638dc411044a21184994550933c203e21d24 authorsuperherointj <5861043+superherointj@users.noreply.github.com> dateSun 16 May 2021, 10:28 (6 years ago) parentc58b976
1 file changed+5−3
pkgs/development/libraries/libtomcrypt/default.nix+5−3
pkgs/development/libraries/libtomcrypt/default.nix+5−3
@@ -1,4 +1,4 @@
1−{ lib, stdenv, fetchurl, fetchpatch, libtool }:
1+{ lib, stdenv, fetchurl, fetchpatch, libtool, libtommath }:
22
33stdenv.mkDerivation rec {
44 pname = "libtomcrypt";
@@ -17,14 +17,16 @@ stdenv.mkDerivation rec {
1717 })
1818 ];
1919
20− nativeBuildInputs = [ libtool ];
20+ nativeBuildInputs = [ libtool libtommath ];
2121
2222 postPatch = ''
2323 substituteInPlace makefile.shared --replace "LT:=glibtool" "LT:=libtool"
2424 '';
2525
2626 preBuild = ''
27− makeFlagsArray=(PREFIX=$out \
27+ makeFlagsArray+=(PREFIX=$out \
28+ CFLAGS="-DUSE_LTM -DLTM_DESC -DLTC_PTHREAD" \
29+ EXTRALIBS=\"-ltommath\" \
2830 INSTALL_GROUP=$(id -g) \
2931 INSTALL_USER=$(id -u))
3032 '';