1 { lib, stdenv, fetchurl, libtool }:
3 stdenv.mkDerivation rec {
8 url = "https://github.com/libtom/libtommath/releases/download/v${version}/ltm-${version}.tar.xz";
9 sha256 = "1c8q1qy88cjhdjlk3g24mra94h34c1ldvkjz0n2988c0yvn5xixp";
12 nativeBuildInputs = [ libtool ];
15 substituteInPlace makefile.shared --replace glibtool libtool
16 substituteInPlace makefile_include.mk --replace "shell arch" "shell uname -m"
20 makeFlagsArray=(PREFIX=$out \
21 INSTALL_GROUP=$(id -g) \
22 INSTALL_USER=$(id -u))
25 makefile = "makefile.shared";
27 enableParallelBuilding = true;
30 homepage = "https://www.libtom.net/LibTomMath/";
31 description = "A library for integer-based number-theoretic applications";
32 license = with licenses; [ publicDomain wtfpl ];
33 platforms = platforms.unix;