cantor: nixfmt

This commit is contained in:
wxt 2024-10-22 19:25:14 +08:00
parent ee96528a72
commit ac156c8a50

View File

@ -1,46 +1,55 @@
{ lib {
, mkDerivation lib,
mkDerivation,
, cmake cmake,
, extra-cmake-modules extra-cmake-modules,
, makeWrapper makeWrapper,
, shared-mime-info shared-mime-info,
, qtbase qtbase,
, qtsvg qtsvg,
, qttools qttools,
, qtwebengine qtwebengine,
, qtxmlpatterns qtxmlpatterns,
, poppler poppler,
, karchive karchive,
, kcompletion kcompletion,
, kconfig kconfig,
, kcoreaddons kcoreaddons,
, kcrash kcrash,
, kdoctools kdoctools,
, ki18n ki18n,
, kiconthemes kiconthemes,
, kio kio,
, knewstuff knewstuff,
, kparts kparts,
, kpty kpty,
, ktexteditor ktexteditor,
, ktextwidgets ktextwidgets,
, kxmlgui kxmlgui,
, syntax-highlighting syntax-highlighting,
, libspectre libspectre,
# Backends. Set to null if you want to omit from the build # Backends. Set to null if you want to omit from the build
, withAnalitza ? true, analitza withAnalitza ? true,
, wtihJulia ? true, julia analitza,
, withQalculate ? true, libqalculate wtihJulia ? true,
, withLua ? true, luajit julia,
, withPython ? true, python3 withQalculate ? true,
, withR ? true, R libqalculate,
, withSage ? true, sage, sage-with-env ? sage.with-env withLua ? true,
luajit,
withPython ? true,
python3,
withR ? true,
R,
withSage ? true,
sage,
sage-with-env ? sage.with-env,
}: }:
mkDerivation { mkDerivation {
@ -54,42 +63,42 @@ mkDerivation {
qttools qttools
]; ];
buildInputs = [ buildInputs =
qtbase [
qtsvg qtbase
qtwebengine qtsvg
qtxmlpatterns qtwebengine
qtxmlpatterns
poppler poppler
karchive karchive
kcompletion kcompletion
kconfig kconfig
kcoreaddons kcoreaddons
kcrash kcrash
kdoctools kdoctools
ki18n ki18n
kiconthemes kiconthemes
kio kio
knewstuff knewstuff
kparts kparts
kpty kpty
ktexteditor ktexteditor
ktextwidgets ktextwidgets
kxmlgui kxmlgui
syntax-highlighting syntax-highlighting
libspectre libspectre
] ]
# backends # backends
++ lib.optional withAnalitza analitza ++ lib.optional withAnalitza analitza
++ lib.optional wtihJulia julia ++ lib.optional wtihJulia julia
++ lib.optional withQalculate libqalculate ++ lib.optional withQalculate libqalculate
++ lib.optional withLua luajit ++ lib.optional withLua luajit
++ lib.optional withPython python3 ++ lib.optional withPython python3
++ lib.optional withR R ++ lib.optional withR R
++ lib.optional withSage sage-with-env ++ lib.optional withSage sage-with-env;
;
qtWrapperArgs = [ qtWrapperArgs = [
"--prefix PATH : ${placeholder "out"}/bin" "--prefix PATH : ${placeholder "out"}/bin"
@ -101,7 +110,13 @@ mkDerivation {
meta = with lib; { meta = with lib; {
description = "Front end to powerful mathematics and statistics packages"; description = "Front end to powerful mathematics and statistics packages";
homepage = "https://cantor.kde.org/"; 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 ]; maintainers = with maintainers; [ hqurve ];
}; };
} }