1{ stdenv, fetchurl, m4, which, yasm }:
2
3stdenv.mkDerivation rec {
4 pname = "mpir";
5 version = "3.0.0";
6
7 nativeBuildInputs = [ m4 which yasm ];
8
9 src = fetchurl {
10 url = "http://mpir.org/mpir-${version}.tar.bz2";
11 sha256 = "1fvmhrqdjs925hzr2i8bszm50h00gwsh17p2kn2pi51zrxck9xjj";
12 };
13
14 configureFlags = [ "--enable-cxx" ];
15
16 meta = {
17 inherit version;
18 description = ''A highly optimised library for bignum arithmetic forked from GMP'';
19 license = stdenv.lib.licenses.lgpl3Plus;
20 maintainers = [stdenv.lib.maintainers.raskin];
21 platforms = stdenv.lib.platforms.unix;
22 downloadPage = "http://mpir.org/downloads.html";
23 homepage = http://mpir.org/;
24 updateWalker = true;
25 };
26}