52 lines
932 B
Nix
52 lines
932 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
stdenv,
|
||
|
|
fetchFromGitHub,
|
||
|
|
autoreconfHook,
|
||
|
|
bison,
|
||
|
|
flex,
|
||
|
|
gitUpdater,
|
||
|
|
gmp,
|
||
|
|
gtk3,
|
||
|
|
pkg-config,
|
||
|
|
qtbase,
|
||
|
|
wrapQtAppsHook,
|
||
|
|
}:
|
||
|
|
|
||
|
|
stdenv.mkDerivation (finalAttrs: {
|
||
|
|
pname = "mpsolve";
|
||
|
|
version = "3.2.2";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "robol";
|
||
|
|
repo = "MPSolve";
|
||
|
|
rev = "de7ebfc7afc4834a0c9f92a04be7abdf5943d446";
|
||
|
|
hash = "sha256-BGXvNxWUbto0yMIpEIxZ9wOYv9w0ev4OgVcniNYIKoU=";
|
||
|
|
};
|
||
|
|
|
||
|
|
nativeBuildInputs = [
|
||
|
|
autoreconfHook
|
||
|
|
bison
|
||
|
|
flex
|
||
|
|
pkg-config
|
||
|
|
wrapQtAppsHook
|
||
|
|
];
|
||
|
|
|
||
|
|
buildInputs = [
|
||
|
|
gmp
|
||
|
|
gtk3
|
||
|
|
qtbase
|
||
|
|
];
|
||
|
|
|
||
|
|
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";
|
||
|
|
platforms = lib.platforms.linux;
|
||
|
|
};
|
||
|
|
})
|