summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2018-04-27 15:52:00 +0200
committeraszlig <aszlig@nix.build>2018-04-28 12:41:37 +0200
commit6134887bef5357ccda4d81aef78182217df4c3ed (patch)
tree7bb5f63050985d204b9a089600af21eede82994d /pkgs/development
parent5621e1a14dad88f741e5fc5cdac62cbc16e72d5d (diff)
downloadnixpkgs-6134887bef5357ccda4d81aef78182217df4c3ed.tar
nixpkgs-6134887bef5357ccda4d81aef78182217df4c3ed.tar.gz
nixpkgs-6134887bef5357ccda4d81aef78182217df4c3ed.tar.bz2
nixpkgs-6134887bef5357ccda4d81aef78182217df4c3ed.tar.lz
nixpkgs-6134887bef5357ccda4d81aef78182217df4c3ed.tar.xz
nixpkgs-6134887bef5357ccda4d81aef78182217df4c3ed.tar.zst
nixpkgs-6134887bef5357ccda4d81aef78182217df4c3ed.zip
mpir: Build with C++ support
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
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/libraries/mpir/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/libraries/mpir/default.nix b/pkgs/development/libraries/mpir/default.nix
index cbcf83f1d32..b9b25e7f43b 100644
--- a/pkgs/development/libraries/mpir/default.nix
+++ b/pkgs/development/libraries/mpir/default.nix
@@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
     sha256 = "1fvmhrqdjs925hzr2i8bszm50h00gwsh17p2kn2pi51zrxck9xjj";
   };
 
+  configureFlags = [ "--enable-cxx" ];
+
   meta = {
     inherit version;
     description = ''A highly optimised library for bignum arithmetic forked from GMP'';