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