Skip to content

Commit ebacdc2

Browse files
committed
Don't use LTC_PTHREAD in TomCrypt
1 parent 5660a09 commit ebacdc2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

flake.nix

+7
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@
7171
url = "https://github.com/libtom/libtomcrypt/releases/download/v${version}/crypt-${version}.tar.xz";
7272
sha256 = "113vfrgapyv72lalhd3nkw7jnks8az0gcb5wqn9hj19nhcxlrbcn";
7373
};
74+
preBuild = ''
75+
makeFlagsArray+=(PREFIX=$out \
76+
CFLAGS="-DUSE_LTM -DLTM_DESC" \
77+
EXTRALIBS=\"-ltommath\" \
78+
INSTALL_GROUP=$(id -g) \
79+
INSTALL_USER=$(id -u))
80+
'';
7481
patches = ( prev.patches or [] ) ++ [
7582
( pkgs.writeText "pkgconfig-for-static.patch" ''
7683
diff --git a/makefile b/makefile

0 commit comments

Comments
 (0)