2024-09-30 00:32:55 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
libsForQt5,
|
2023-09-11 22:29:28 +02:00
|
|
|
}:
|
|
|
|
|
2024-09-30 00:41:52 +02:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2023-09-11 22:29:28 +02:00
|
|
|
pname = "mathmod";
|
2025-04-08 01:34:03 +00:00
|
|
|
version = "12.1";
|
2023-09-11 22:29:28 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "parisolab";
|
|
|
|
repo = "mathmod";
|
2025-01-03 21:24:13 +01:00
|
|
|
tag = finalAttrs.version;
|
2025-04-08 01:34:03 +00:00
|
|
|
hash = "sha256-gDIYDXI9X24JAM1HP10EhJXkHZV2X8QngD5KPCUqdyI=";
|
2023-09-11 22:29:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./fix-paths.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace MathMod.pro --subst-var out
|
|
|
|
'';
|
|
|
|
|
2024-09-30 00:32:55 +02:00
|
|
|
nativeBuildInputs = with libsForQt5; [
|
|
|
|
qmake
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
2023-09-11 22:29:28 +02:00
|
|
|
|
|
|
|
meta = {
|
2024-09-30 00:41:52 +02:00
|
|
|
changelog = "https://github.com/parisolab/mathmod/releases/tag/${finalAttrs.version}";
|
2023-09-11 22:29:28 +02:00
|
|
|
description = "Mathematical modelling software";
|
|
|
|
homepage = "https://github.com/parisolab/mathmod";
|
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
mainProgram = "MathMod";
|
|
|
|
maintainers = with lib.maintainers; [ tomasajt ];
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
};
|
2024-09-30 00:41:52 +02:00
|
|
|
})
|