about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/kde/cantor.nix
blob: 0acfa430eaa757b81c33e6bfa913f63e211be723 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{ lib
, mkDerivation

, cmake
, extra-cmake-modules
, makeWrapper
, shared-mime-info

, qtbase
, qtsvg
, qttools
, qtwebengine
, qtxmlpatterns

, poppler

, karchive
, kcompletion
, kconfig
, kcoreaddons
, kcrash
, kdoctools
, ki18n
, kiconthemes
, kio
, knewstuff
, kparts
, kpty
, ktexteditor
, ktextwidgets
, kxmlgui
, syntax-highlighting

, libspectre

# Backends. Set to null if you want to omit from the build
, withAnalitza ? true, analitza
, wtihJulia ? true, julia
, withQalculate ? true, libqalculate
, withLua ? true, luajit
, withPython ? true, python3
, withR ? true, R
, withSage ? true, sage, sage-with-env ? sage.with-env
}:

mkDerivation {
  pname = "cantor";

  nativeBuildInputs = [
    cmake
    extra-cmake-modules
    makeWrapper
    shared-mime-info
    qttools
  ];

  buildInputs = [
    qtbase
    qtsvg
    qtwebengine
    qtxmlpatterns

    poppler

    karchive
    kcompletion
    kconfig
    kcoreaddons
    kcrash
    kdoctools
    ki18n
    kiconthemes
    kio
    knewstuff
    kparts
    kpty
    ktexteditor
    ktextwidgets
    kxmlgui
    syntax-highlighting

    libspectre
  ]
  # backends
  ++ lib.optional withAnalitza analitza
  ++ lib.optional wtihJulia julia
  ++ lib.optional withQalculate libqalculate
  ++ lib.optional withLua luajit
  ++ lib.optional withPython python3
  ++ lib.optional withR R
  ++ lib.optional withSage sage-with-env
  ;

  qtWrapperArgs = [
    "--prefix PATH : ${placeholder "out"}/bin"
  ] ++ lib.optional withSage "--prefix PATH : ${sage-with-env}/bin";

  meta = with lib; {
    description = "Front end to powerful mathematics and statistics packages";
    homepage = "https://cantor.kde.org/";
    license = with licenses; [ bsd3 cc0 gpl2Only gpl2Plus gpl3Only ];
    maintainers = with maintainers; [ hqurve ];
  };
}