2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchurl, m4, which, yasm }:
|
2017-01-20 00:15:53 +01:00
|
|
|
|
2016-10-10 15:46:11 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "mpir";
|
2017-03-09 15:34:06 +01:00
|
|
|
version = "3.0.0";
|
2017-01-20 00:15:53 +01:00
|
|
|
|
2017-03-09 15:34:06 +01:00
|
|
|
nativeBuildInputs = [ m4 which yasm ];
|
2017-01-20 00:15:53 +01:00
|
|
|
|
2016-10-10 15:46:11 +02:00
|
|
|
src = fetchurl {
|
2021-04-18 20:59:11 +02:00
|
|
|
url = "https://mpir.org/mpir-${version}.tar.bz2";
|
2017-03-09 15:34:06 +01:00
|
|
|
sha256 = "1fvmhrqdjs925hzr2i8bszm50h00gwsh17p2kn2pi51zrxck9xjj";
|
2016-10-10 15:46:11 +02:00
|
|
|
};
|
2017-01-20 00:15:53 +01:00
|
|
|
|
2021-05-11 17:09:25 +02:00
|
|
|
configureFlags = [ "--enable-cxx" ]
|
|
|
|
++ lib.optionals stdenv.isLinux [ "--enable-fat" ];
|
2018-04-27 15:52:00 +02:00
|
|
|
|
2016-10-10 15:46:11 +02:00
|
|
|
meta = {
|
2021-01-24 10:19:10 +01:00
|
|
|
description = "A highly optimised library for bignum arithmetic forked from GMP";
|
2021-01-21 18:00:13 +01:00
|
|
|
license = lib.licenses.lgpl3Plus;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.unix;
|
2021-04-18 20:59:11 +02:00
|
|
|
downloadPage = "https://mpir.org/downloads.html";
|
|
|
|
homepage = "https://mpir.org/";
|
2016-10-10 15:46:11 +02:00
|
|
|
updateWalker = true;
|
|
|
|
};
|
|
|
|
}
|