2017-01-19 23:15:53 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, m4 }:
|
|
|
|
|
2016-10-10 14:46:11 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mpir-${version}";
|
|
|
|
version = "2.7.2";
|
2017-01-19 23:15:53 +00:00
|
|
|
|
|
|
|
buildInputs = [ m4 ];
|
|
|
|
|
2016-10-10 14:46:11 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://mpir.org/mpir-${version}.tar.bz2";
|
|
|
|
sha256 = "1v25dx7cah2vxwzgq78hpzqkryrfxhwx3mcj3jjq3xxljlsw7m57";
|
|
|
|
};
|
2017-01-19 23:15:53 +00:00
|
|
|
|
|
|
|
patches = [ (fetchpatch {
|
|
|
|
url = "https://github.com/wbhart/mpir/commit/fdb590023f7ca4b2e881a2e9573718e7ed180f03.patch";
|
|
|
|
sha256 = "152pdqpf8xxr4ky25f9zrvfb66i1wzy6a5b91h4zmpqjdffqf1iw";
|
|
|
|
}) ];
|
|
|
|
|
2016-10-10 14:46:11 +01:00
|
|
|
meta = {
|
|
|
|
inherit version;
|
|
|
|
description = ''A highly optimised library for bignum arithmetic forked from GMP'';
|
|
|
|
license = stdenv.lib.licenses.lgpl3Plus;
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
downloadPage = "http://mpir.org/downloads.html";
|
|
|
|
homepage = "http://mpir.org/";
|
|
|
|
updateWalker = true;
|
|
|
|
};
|
|
|
|
}
|