about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/math/zegrapher/default.nix
blob: 2beaf5757a550a066bbee79674abfbf5d3cedeee (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
35
36
37
{ lib, stdenv
, fetchFromGitHub
, qmake
, wrapQtAppsHook
, boost }:

stdenv.mkDerivation rec {
  pname = "zegrapher";
  version = "3.1.1";

  src = fetchFromGitHub {
    owner = "AdelKS";
    repo = "ZeGrapher";
    rev = "v${version}";
    sha256 = "sha256-OSQXm0gDI1zM2MBM4iiY43dthJcAZJkprklolsNMEvk=";
  };

  nativeBuildInputs = [
    qmake
    wrapQtAppsHook
  ];
  buildInputs = [
    boost
  ];

  meta = with lib; {
    homepage = "https://zegrapher.com/";
    description = "An open source math plotter";
    mainProgram = "ZeGrapher";
    longDescription = ''
      An open source, free and easy to use math plotter. It can plot functions,
      sequences, parametric equations and data on the plane.
    '';
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ AndersonTorres ];
  };
}