1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
autoreconfHook,
bison,
check,
flex,
gitUpdater,
gmp,
gtk3,
pkg-config,
libsForQt5,
withGUI ? true,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "mpsolve";
version = "3.2.2";
outputs = [
"out"
"dev"
"man"
];
src = fetchFromGitHub {
owner = "robol";
repo = "MPSolve";
rev = "de7ebfc7afc4834a0c9f92a04be7abdf5943d446";
hash = "sha256-BGXvNxWUbto0yMIpEIxZ9wOYv9w0ev4OgVcniNYIKoU=";
};
patches = [
(fetchpatch {
name = "include-cmath-in-c++-before-defining-isnan-macro.patch";
url = "https://github.com/robol/MPSolve/commit/260432c9d1002261f60159d0520af7862d4471ed.patch";
hash = "sha256-ODWpp966S1SsSN8hf7yuYgJR44GgbLwSxui280WWGmM=";
})
];
strictDeps = true;
nativeBuildInputs = [
autoreconfHook
bison
flex
pkg-config
]
++ lib.optionals withGUI [
libsForQt5.wrapQtAppsHook
];
buildInputs = [
gmp
]
++ lib.optionals withGUI [
gtk3
libsForQt5.qtbase
];
configureFlags = [
(lib.enableFeature withGUI "graphical-debugger")
(lib.enableFeature withGUI "ui")
];
enableParallelBuilding = true;
doCheck = true;
checkInputs = [ check ];
checkTarget = "check";
passthru.updateScript = gitUpdater { };
meta = {
homepage = "https://numpi.dm.unipi.it/scientific-computing-libraries/mpsolve/";
description = "Multiprecision Polynomial Solver";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ kilianar ];
mainProgram = "mpsolve";
};
})
|