ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / ma / mathmod / package.nix
blobdf64cf723125e886b0bdb0bc639c96a0ef7c4004
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   libsForQt5,
6 }:
8 stdenv.mkDerivation (finalAttrs: {
9   pname = "mathmod";
10   version = "12.0";
12   src = fetchFromGitHub {
13     owner = "parisolab";
14     repo = "mathmod";
15     rev = "refs/tags/${finalAttrs.version}";
16     hash = "sha256-h1iI7bheJVfE2+0m6Yk7QNCkl9Vye97tqb/WkQExVcQ=";
17   };
19   patches = [ ./fix-paths.patch ];
21   postPatch = ''
22     substituteInPlace MathMod.pro --subst-var out
23   '';
25   nativeBuildInputs = with libsForQt5; [
26     qmake
27     wrapQtAppsHook
28   ];
30   meta = {
31     changelog = "https://github.com/parisolab/mathmod/releases/tag/${finalAttrs.version}";
32     description = "Mathematical modelling software";
33     homepage = "https://github.com/parisolab/mathmod";
34     license = lib.licenses.gpl2Plus;
35     mainProgram = "MathMod";
36     maintainers = with lib.maintainers; [ tomasajt ];
37     platforms = lib.platforms.unix;
38   };