nixpkgs/pkgs/applications/kde/cantor.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

132 lines
2.3 KiB
Nix
Raw Normal View History

2024-10-22 11:25:14 +00:00
{
lib,
mkDerivation,
2023-04-26 21:40:33 +00:00
2024-10-22 11:25:14 +00:00
cmake,
extra-cmake-modules,
makeWrapper,
shared-mime-info,
2023-04-26 21:40:33 +00:00
2024-10-22 12:00:16 +00:00
fetchpatch,
2024-10-22 11:25:14 +00:00
qtbase,
qtsvg,
qttools,
qtwebengine,
qtxmlpatterns,
2023-04-26 21:40:33 +00:00
2024-10-22 11:25:14 +00:00
poppler,
2023-04-26 21:40:33 +00:00
2024-10-22 11:25:14 +00:00
karchive,
kcompletion,
kconfig,
kcoreaddons,
kcrash,
kdoctools,
ki18n,
kiconthemes,
kio,
knewstuff,
kparts,
kpty,
ktexteditor,
ktextwidgets,
kxmlgui,
syntax-highlighting,
2023-04-26 21:40:33 +00:00
2024-10-22 11:25:14 +00:00
libspectre,
2023-04-26 21:40:33 +00:00
2024-10-22 11:25:14 +00:00
# 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,
2023-04-26 21:40:33 +00:00
}:
mkDerivation {
pname = "cantor";
nativeBuildInputs = [
cmake
extra-cmake-modules
makeWrapper
shared-mime-info
qttools
];
2024-10-22 11:25:14 +00:00
buildInputs =
[
qtbase
qtsvg
qtwebengine
qtxmlpatterns
2023-04-26 21:40:33 +00:00
2024-10-22 11:25:14 +00:00
poppler
2023-04-26 21:40:33 +00:00
2024-10-22 11:25:14 +00:00
karchive
kcompletion
kconfig
kcoreaddons
kcrash
kdoctools
ki18n
kiconthemes
kio
knewstuff
kparts
kpty
ktexteditor
ktextwidgets
kxmlgui
syntax-highlighting
2023-04-26 21:40:33 +00:00
2024-10-22 11:25:14 +00:00
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;
2023-04-26 21:40:33 +00:00
qtWrapperArgs = [
"--prefix PATH : ${placeholder "out"}/bin"
2023-08-24 10:59:41 +00:00
] ++ lib.optional withSage "--prefix PATH : ${sage-with-env}/bin";
2023-04-26 21:40:33 +00:00
# Causes failures on Hydra and ofborg from some reason
enableParallelBuilding = false;
2024-10-22 12:00:16 +00:00
patches = [
# fix build for julia 1.1 from upstream
(fetchpatch {
url = "https://github.com/KDE/cantor/commit/ed9525ec7895c2251668d11218f16f186db48a59.patch?full_index=1";
hash = "sha256-paq0e7Tl2aiUjBf1bDHLLUpShwdCQLICNTPNsXSoe5M=";
})
];
meta = {
2023-04-26 21:40:33 +00:00
description = "Front end to powerful mathematics and statistics packages";
homepage = "https://cantor.kde.org/";
2024-10-22 12:00:16 +00:00
license = with lib.licenses; [
2024-10-22 11:25:14 +00:00
bsd3
cc0
gpl2Only
gpl2Plus
gpl3Only
];
2024-10-22 12:00:16 +00:00
maintainers = with lib.maintainers; [ hqurve ];
2023-04-26 21:40:33 +00:00
};
}