mathmod: init at 11.1-unstable-2024-01-26
This commit is contained in:
parent
0e619d7837
commit
24d00917fb
34
pkgs/applications/science/math/mathmod/default.nix
Normal file
34
pkgs/applications/science/math/mathmod/default.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
14
pkgs/applications/science/math/mathmod/fix-paths.patch
Normal file
14
pkgs/applications/science/math/mathmod/fix-paths.patch
Normal file
@ -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
|
@ -38929,6 +38929,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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user