Skip to content

Commit

Permalink
mpsolve: switch to GitHub repository as source (#347159)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther authored Dec 15, 2024
2 parents 52af622 + e5888c3 commit 40010ee
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions pkgs/applications/science/math/mpsolve/default.nix
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
{ lib
, stdenv
, fetchurl
, fetchFromGitHub
, autoreconfHook
, bison
, flex
, gitUpdater
, gmp
, gtk3
, pkg-config
, qtbase
, wrapQtAppsHook
, gtk3
}:

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
bison
flex
pkg-config
wrapQtAppsHook
];
Expand All @@ -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";
Expand Down

0 comments on commit 40010ee

Please sign in to comment.