diff --git a/pkgs/applications/science/math/mpsolve/default.nix b/pkgs/applications/science/math/mpsolve/default.nix index e9b8a3185a85e2..2629734d4c4e4d 100644 --- a/pkgs/applications/science/math/mpsolve/default.nix +++ b/pkgs/applications/science/math/mpsolve/default.nix @@ -1,25 +1,34 @@ { lib , stdenv -, fetchurl +, fetchFromGitHub +, autoreconfHook +, flex +, gitUpdater , gmp +, gtk3 , pkg-config , qtbase , wrapQtAppsHook -, gtk3 +, yacc }: stdenv.mkDerivation (finalAttrs: { pname = "mpsolve"; version = "3.2.1"; - src = fetchurl { - url = "https://numpi.dm.unipi.it/_media/software/mpsolve/mpsolve-${finalAttrs.version}.tar.gz"; - hash = "sha256-PRFCiumrLgIPJMq/vNnk2bIuxXLPcK8NRP6Nrh1R544="; + src = fetchFromGitHub { + owner = "robol"; + repo = "MPSolve"; + rev = finalAttrs.version; + hash = "sha256-7lYwInodKj02G76xqhp/6e9MCzPY80gsAW3vTMNsfdA="; }; nativeBuildInputs = [ + autoreconfHook + flex pkg-config wrapQtAppsHook + yacc ]; buildInputs = [ @@ -28,6 +37,8 @@ stdenv.mkDerivation (finalAttrs: { qtbase ]; + passthru.updateScript = gitUpdater { }; + meta = { homepage = "https://numpi.dm.unipi.it/scientific-computing-libraries/mpsolve/"; description = "Multiprecision Polynomial Solver";