8 stdenv.mkDerivation rec {
13 url = "https://github.com/libtom/libtommath/releases/download/v${version}/ltm-${version}.tar.xz";
14 sha256 = "sha256-KWJy2TQ1mRMI63NgdgDANLVYgHoH6CnnURQuZcz6nQg=";
17 nativeBuildInputs = [ libtool ];
20 substituteInPlace makefile.shared --replace glibtool libtool
21 substituteInPlace makefile_include.mk --replace "shell arch" "shell uname -m"
25 makeFlagsArray=(PREFIX=$out \
26 INSTALL_GROUP=$(id -g) \
27 INSTALL_USER=$(id -u))
30 makefile = "makefile.shared";
32 enableParallelBuilding = true;
35 homepage = "https://www.libtom.net/LibTomMath/";
36 description = "Library for integer-based number-theoretic applications";
37 license = with licenses; [
41 platforms = platforms.unix;