2021-09-26 20:45:05 +01:00
|
|
|
{ mkDerivation, lib, fetchpatch, fetchurl, extra-cmake-modules, kdoctools
|
2021-03-03 03:58:40 +00:00
|
|
|
, boost, qtwebkit, qtx11extras, shared-mime-info
|
|
|
|
, breeze-icons, kactivities, karchive, kcodecs, kcompletion, kconfig, kconfigwidgets
|
|
|
|
, kcoreaddons, kdbusaddons, kdiagram, kguiaddons, khtml, ki18n
|
|
|
|
, kiconthemes, kitemviews, kjobwidgets, kcmutils, kdelibs4support, kio, kross
|
|
|
|
, knotifications, knotifyconfig, kparts, ktextwidgets, kwallet, kwidgetsaddons
|
|
|
|
, kwindowsystem, kxmlgui, sonnet, threadweaver
|
|
|
|
, kcontacts, akonadi, akonadi-calendar, akonadi-contacts
|
|
|
|
, eigen, git, gsl, ilmbase, kproperty, kreport, lcms2, marble, pcre, libgit2, libodfgen
|
|
|
|
, librevenge, libvisio, libwpd, libwpg, libwps, okular, openexr, openjpeg, phonon
|
2021-06-19 04:32:37 +01:00
|
|
|
, poppler, pstoedit, qca-qt5, vc, fontconfig
|
2017-09-15 18:06:49 +01:00
|
|
|
# TODO: package Spnav, m2mml LibEtonyek, Libqgit2
|
2015-09-27 16:11:01 +01:00
|
|
|
}:
|
2012-02-13 19:34:42 +00:00
|
|
|
|
2017-09-15 18:06:49 +01:00
|
|
|
mkDerivation rec {
|
|
|
|
pname = "calligra";
|
2020-10-29 23:38:12 +00:00
|
|
|
version = "3.2.1";
|
2012-02-13 19:34:42 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://kde/stable/${pname}/${version}/${pname}-${version}.tar.xz";
|
2020-10-29 23:38:12 +00:00
|
|
|
sha256 = "0iqi6z6gkck2afgy200dacgcspq7i7887alcj0pklm08hbmsdy5i";
|
2012-02-13 19:34:42 +00:00
|
|
|
};
|
|
|
|
|
2021-09-26 20:45:05 +01:00
|
|
|
patches = [
|
|
|
|
# Fix fontconfig underlinking: https://github.com/NixOS/nixpkgs/issues/137794
|
|
|
|
# Can be dropped on next release.
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-fontconfig-linking.patch";
|
|
|
|
url = "https://github.com/KDE/calligra/commit/62f510702ef9c34ac50f8d8601a4290ab558464c.patch";
|
|
|
|
sha256 = "11dzrp9q05dmvnwp4vk4ihcibqcf4xyr0ijscpi716cyy730flma";
|
|
|
|
excludes = [ "CMakeLists.txt" ];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-08-24 00:49:12 +01:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
2012-02-13 19:34:42 +00:00
|
|
|
|
2015-09-27 16:11:01 +01:00
|
|
|
buildInputs = [
|
2018-02-25 02:23:58 +00:00
|
|
|
boost qtwebkit qtx11extras shared-mime-info
|
2017-09-15 18:06:49 +01:00
|
|
|
kactivities karchive kcodecs kcompletion kconfig kconfigwidgets kcoreaddons
|
|
|
|
kdbusaddons kdiagram kguiaddons khtml ki18n kiconthemes kitemviews
|
|
|
|
kjobwidgets kcmutils kdelibs4support kio kross knotifications knotifyconfig kparts
|
|
|
|
ktextwidgets kwallet kwidgetsaddons kwindowsystem kxmlgui sonnet threadweaver
|
|
|
|
kcontacts akonadi akonadi-calendar akonadi-contacts
|
2020-08-24 00:49:12 +01:00
|
|
|
eigen git gsl ilmbase kproperty kreport lcms2 marble pcre libgit2 libodfgen librevenge
|
2017-09-15 18:06:49 +01:00
|
|
|
libvisio libwpd libwpg libwps okular openexr openjpeg phonon poppler qca-qt5 vc
|
2021-06-19 04:32:37 +01:00
|
|
|
fontconfig
|
2015-01-11 15:02:13 +00:00
|
|
|
];
|
|
|
|
|
2017-09-15 18:06:49 +01:00
|
|
|
propagatedUserEnvPkgs = [ kproperty ];
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR";
|
2012-02-13 19:34:42 +00:00
|
|
|
|
2020-08-24 00:49:12 +01:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--prefix PATH : ${lib.getBin pstoedit}/bin"
|
|
|
|
"--prefix XDG_DATA_DIRS : ${breeze-icons}/share"
|
|
|
|
];
|
2015-11-05 20:55:08 +00:00
|
|
|
|
2017-09-15 18:06:49 +01:00
|
|
|
meta = with lib; {
|
2015-04-30 16:05:14 +01:00
|
|
|
description = "A suite of productivity applications";
|
|
|
|
longDescription = ''
|
|
|
|
Calligra Suite is a set of applications written to help
|
|
|
|
you to accomplish your work. Calligra includes efficient
|
|
|
|
and capable office components: Words for text processing,
|
2017-09-15 18:06:49 +01:00
|
|
|
Sheets for computations, Plan for planning, and Karbon for
|
2015-04-30 16:05:14 +01:00
|
|
|
vector graphics.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.calligra.org/";
|
2021-12-18 09:25:46 +00:00
|
|
|
maintainers = with maintainers; [ ebzzry zraexy ];
|
2017-09-15 18:06:49 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = with licenses; [ gpl2 lgpl2 ];
|
2012-02-13 19:34:42 +00:00
|
|
|
};
|
|
|
|
}
|