mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
6134887bef
This is needed by Alkimia which I'm going to package soon as part of KMyMoney. I enabled this by default, because it doesn't increase the closure size a whole lot (only around 150 KiB): $ nix-store -q --size /nix/store/...old...-mpir-3.0.0 1223248 $ nix-store -q --size /nix/store/...new...-mpir-3.0.0 1377136 Introducing an option for enabling/disabling this is not worth it, because it doesn't conflict with anything and the size increase is the only drawback and we can still make it configurable if we want someday. Signed-off-by: aszlig <aszlig@nix.build> Cc: @7c6f434c
27 lines
735 B
Nix
27 lines
735 B
Nix
{ stdenv, fetchurl, fetchpatch, m4, which, yasm }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "mpir-${version}";
|
|
version = "3.0.0";
|
|
|
|
nativeBuildInputs = [ m4 which yasm ];
|
|
|
|
src = fetchurl {
|
|
url = "http://mpir.org/mpir-${version}.tar.bz2";
|
|
sha256 = "1fvmhrqdjs925hzr2i8bszm50h00gwsh17p2kn2pi51zrxck9xjj";
|
|
};
|
|
|
|
configureFlags = [ "--enable-cxx" ];
|
|
|
|
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;
|
|
};
|
|
}
|