Commit ac156c8a authored by wxt's avatar wxt
Browse files

cantor: nixfmt

parent ee96528a
Loading
Loading
Loading
Loading
+86 −71
Original line number Diff line number Diff line
{ lib
, mkDerivation
{
  lib,
  mkDerivation,

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

, qtbase
, qtsvg
, qttools
, qtwebengine
, qtxmlpatterns
  qtbase,
  qtsvg,
  qttools,
  qtwebengine,
  qtxmlpatterns,

, poppler
  poppler,

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

, libspectre
  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
  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 {
@@ -54,7 +63,8 @@ mkDerivation {
    qttools
  ];

  buildInputs = [
  buildInputs =
    [
      qtbase
      qtsvg
      qtwebengine
@@ -88,8 +98,7 @@ mkDerivation {
    ++ lib.optional withLua luajit
    ++ lib.optional withPython python3
    ++ lib.optional withR R
  ++ lib.optional withSage sage-with-env
  ;
    ++ lib.optional withSage sage-with-env;

  qtWrapperArgs = [
    "--prefix PATH : ${placeholder "out"}/bin"
@@ -101,7 +110,13 @@ mkDerivation {
  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 ];
    license = with licenses; [
      bsd3
      cc0
      gpl2Only
      gpl2Plus
      gpl3Only
    ];
    maintainers = with maintainers; [ hqurve ];
  };
}