Merge pull request #254623 from TomaSajt/mathmod

mathmod: init at 11.1-unstable-2024-01-26
This commit is contained in:
Peder Bergebakken Sundt 2024-06-06 00:46:00 +02:00 committed by GitHub
commit c4c7999160
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 50 additions and 0 deletions

@ -0,0 +1,34 @@
{ lib
, mkDerivation
, fetchFromGitHub
, qmake
}:
mkDerivation {
pname = "mathmod";
version = "11.1-unstable-2024-01-26";
src = fetchFromGitHub {
owner = "parisolab";
repo = "mathmod";
rev = "24d03a04c17363520ae7cf077e72a7b8684eb6fd";
hash = "sha256-HiqHssPGqYEVZWchZRj4rFPc+xNVZk1ryl5qvFC2BmQ=";
};
patches = [ ./fix-paths.patch ];
postPatch = ''
substituteInPlace MathMod.pro --subst-var out
'';
nativeBuildInputs = [ qmake ];
meta = {
description = "A mathematical modelling software";
homepage = "https://github.com/parisolab/mathmod";
license = lib.licenses.gpl2Plus;
mainProgram = "MathMod";
maintainers = with lib.maintainers; [ tomasajt ];
platforms = lib.platforms.unix;
};
}

@ -0,0 +1,14 @@
diff --git a/MathMod.pro b/MathMod.pro
index 2e2fbf1..bb8f8bd 100644
--- a/MathMod.pro
+++ b/MathMod.pro
@@ -63,7 +63,5 @@ OTHER_FILES += \
mathmodcollection.js \
mathmodconfig.js
# install
-target.path = $TARGET
-sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS mathmod.pro
-sources.path = $TARGET
-INSTALLS += target sources
+target.path = @out@/bin
+INSTALLS += target

@ -38187,6 +38187,8 @@ with pkgs;
version = "11";
};
mathmod = libsForQt5.callPackage ../applications/science/math/mathmod { };
metis = callPackage ../development/libraries/science/math/metis { };
nauty = callPackage ../applications/science/math/nauty { };