Unverified Commit c4c79991 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

Merge pull request #254623 from TomaSajt/mathmod

mathmod: init at 11.1-unstable-2024-01-26
parents b74cd530 24d00917
Loading
Loading
Loading
Loading
+34 −0
Original line number Diff line number Diff line
{ 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 −0
Original line number Diff line number Diff line
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
+2 −0
Original line number Diff line number Diff line
@@ -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 { };