cantor: init at 23.04.0
This commit is contained in:
parent
547071ee63
commit
abf66be4b2
3 changed files with 112 additions and 0 deletions
109
pkgs/applications/kde/cantor.nix
Normal file
109
pkgs/applications/kde/cantor.nix
Normal file
|
@ -0,0 +1,109 @@
|
|||
{ 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 ];
|
||||
};
|
||||
}
|
|
@ -79,6 +79,7 @@ let
|
|||
bovo = callPackage ./bovo.nix {};
|
||||
calendarsupport = callPackage ./calendarsupport.nix {};
|
||||
colord-kde = callPackage ./colord-kde.nix {};
|
||||
cantor = callPackage ./cantor.nix {};
|
||||
dolphin = callPackage ./dolphin.nix {};
|
||||
dolphin-plugins = callPackage ./dolphin-plugins.nix {};
|
||||
dragon = callPackage ./dragon.nix {};
|
||||
|
|
|
@ -37513,6 +37513,8 @@ with pkgs;
|
|||
|
||||
brial = callPackage ../development/libraries/science/math/brial { };
|
||||
|
||||
cantor = libsForQt5.cantor;
|
||||
|
||||
clblas = callPackage ../development/libraries/science/math/clblas {
|
||||
inherit (darwin.apple_sdk.frameworks) Accelerate CoreGraphics CoreVideo OpenCL;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue