diff options
author | TomaSajt <62384384+TomaSajt@users.noreply.github.com> | 2023-09-11 22:29:28 +0200 |
---|---|---|
committer | TomaSajt <62384384+TomaSajt@users.noreply.github.com> | 2024-03-02 00:16:55 +0100 |
commit | 24d00917fb54cda381bb705e5cf5da93e169ee0f (patch) | |
tree | a2f2aaa4a012236c0386ac220330ba96f5376c38 /pkgs/applications/science/math | |
parent | 0e619d7837d53ca5085c61152998a1d30c4eaaa0 (diff) | |
download | nixlib-24d00917fb54cda381bb705e5cf5da93e169ee0f.tar nixlib-24d00917fb54cda381bb705e5cf5da93e169ee0f.tar.gz nixlib-24d00917fb54cda381bb705e5cf5da93e169ee0f.tar.bz2 nixlib-24d00917fb54cda381bb705e5cf5da93e169ee0f.tar.lz nixlib-24d00917fb54cda381bb705e5cf5da93e169ee0f.tar.xz nixlib-24d00917fb54cda381bb705e5cf5da93e169ee0f.tar.zst nixlib-24d00917fb54cda381bb705e5cf5da93e169ee0f.zip |
mathmod: init at 11.1-unstable-2024-01-26
Diffstat (limited to 'pkgs/applications/science/math')
-rw-r--r-- | pkgs/applications/science/math/mathmod/default.nix | 34 | ||||
-rw-r--r-- | pkgs/applications/science/math/mathmod/fix-paths.patch | 14 |
2 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/mathmod/default.nix b/pkgs/applications/science/math/mathmod/default.nix new file mode 100644 index 000000000000..01dab1dedea2 --- /dev/null +++ b/pkgs/applications/science/math/mathmod/default.nix @@ -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; + }; +} diff --git a/pkgs/applications/science/math/mathmod/fix-paths.patch b/pkgs/applications/science/math/mathmod/fix-paths.patch new file mode 100644 index 000000000000..b65b107882ee --- /dev/null +++ b/pkgs/applications/science/math/mathmod/fix-paths.patch @@ -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 |