Skip to content

Commit

Permalink
mpsolve: switch to GitHub repository as source
Browse files Browse the repository at this point in the history
  • Loading branch information
kilianar committed Oct 7, 2024
1 parent 3b7c164 commit e3606ae
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,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 = [
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 e3606ae

Please sign in to comment.