about summary refs log tree commit diff
path: root/pkgs/applications/science/math/mathmod/default.nix
blob: 01dab1dedea2e21014d55f247a990cfac9d7ac94 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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;
  };
}