mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
110 lines
1.8 KiB
Nix
110 lines
1.8 KiB
Nix
{ 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"
|
|
];
|
|
|
|
postInstall = lib.optionalString withSage ''
|
|
wrapProgram $out/share/cantor/sagebackend/cantor-execsage \
|
|
--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 ];
|
|
};
|
|
}
|