mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-11 06:34:13 +00:00
commit
469555af72
@ -2,7 +2,7 @@
|
|||||||
mkDerivation, lib, kdepimTeam,
|
mkDerivation, lib, kdepimTeam,
|
||||||
extra-cmake-modules, kdoctools,
|
extra-cmake-modules, kdoctools,
|
||||||
akonadi, akonadi-contacts, calendarsupport, kcalcore, kcompletion,
|
akonadi, akonadi-contacts, calendarsupport, kcalcore, kcompletion,
|
||||||
kconfigwidgets, kcontacts, kdbusaddons, kitemmodels, kpimtextedit,
|
kconfigwidgets, kcontacts, kdbusaddons, kitemmodels, kpimtextedit, libkdepim,
|
||||||
ktextwidgets, kxmlgui, messagelib, qtbase,
|
ktextwidgets, kxmlgui, messagelib, qtbase,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -16,6 +16,6 @@ mkDerivation {
|
|||||||
buildInputs = [
|
buildInputs = [
|
||||||
akonadi akonadi-contacts calendarsupport kcalcore kcompletion kconfigwidgets
|
akonadi akonadi-contacts calendarsupport kcalcore kcompletion kconfigwidgets
|
||||||
kcontacts kdbusaddons kitemmodels kpimtextedit ktextwidgets kxmlgui
|
kcontacts kdbusaddons kitemmodels kpimtextedit ktextwidgets kxmlgui
|
||||||
messagelib qtbase
|
messagelib qtbase libkdepim
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -44,17 +44,6 @@ Index: grantleetheme-17.04.0/src/grantleetheme.cpp
|
|||||||
loader->setTheme(dirName);
|
loader->setTheme(dirName);
|
||||||
|
|
||||||
if (!sEngine) {
|
if (!sEngine) {
|
||||||
@@ -102,9 +105,7 @@ QString ThemePrivate::errorTemplate(cons
|
|
||||||
Grantlee::Context ctx = createContext();
|
|
||||||
ctx.insert(QStringLiteral("error"), reason);
|
|
||||||
ctx.insert(QStringLiteral("templateName"), origTemplateName);
|
|
||||||
- const QString errorString = failedTemplate
|
|
||||||
- ? failedTemplate->errorString()
|
|
||||||
- : QStringLiteral("(null template)");
|
|
||||||
+ const QString errorString = failedTemplate->errorString();
|
|
||||||
ctx.insert(QStringLiteral("errorMessage"), errorString);
|
|
||||||
return tpl->render(&ctx);
|
|
||||||
}
|
|
||||||
@@ -122,7 +123,7 @@ Theme::Theme(const QString &themePath, c
|
@@ -122,7 +123,7 @@ Theme::Theme(const QString &themePath, c
|
||||||
KConfigGroup group(&config, QStringLiteral("Desktop Entry"));
|
KConfigGroup group(&config, QStringLiteral("Desktop Entry"));
|
||||||
if (group.isValid()) {
|
if (group.isValid()) {
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
diff --git a/src/grantleetheme.cpp b/src/grantleetheme.cpp
|
|
||||||
index b86fc3a..8af72f4 100644
|
|
||||||
--- a/src/grantleetheme.cpp
|
|
||||||
+++ b/src/grantleetheme.cpp
|
|
||||||
@@ -102,7 +102,10 @@ QString ThemePrivate::errorTemplate(const QString &reason,
|
|
||||||
Grantlee::Context ctx = createContext();
|
|
||||||
ctx.insert(QStringLiteral("error"), reason);
|
|
||||||
ctx.insert(QStringLiteral("templateName"), origTemplateName);
|
|
||||||
- ctx.insert(QStringLiteral("errorMessage"), failedTemplate->errorString());
|
|
||||||
+ const QString errorString = failedTemplate
|
|
||||||
+ ? failedTemplate->errorString()
|
|
||||||
+ : QStringLiteral("(null template)");
|
|
||||||
+ ctx.insert(QStringLiteral("errorMessage"), errorString);
|
|
||||||
return tpl->render(&ctx);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -208,7 +211,7 @@ QString Theme::render(const QString &templateName, const QVariantHash &data, con
|
|
||||||
}
|
|
||||||
|
|
||||||
Grantlee::Template tpl = d->loader->loadByName(templateName, ThemePrivate::sEngine);
|
|
||||||
- if (tpl->error()) {
|
|
||||||
+ if (!tpl || tpl->error()) {
|
|
||||||
return d->errorTemplate(i18n("Template parsing error"), templateName, tpl);
|
|
||||||
}
|
|
||||||
|
|
@ -1,2 +1 @@
|
|||||||
grantleetheme_check_null.patch
|
|
||||||
grantlee-merge-theme-dirs.patch
|
grantlee-merge-theme-dirs.patch
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
{ mkDerivation, lib
|
{ mkDerivation, lib
|
||||||
, extra-cmake-modules, kdoctools, makeWrapper
|
, extra-cmake-modules, kdoctools, makeWrapper, shared_mime_info
|
||||||
, qtwebkit
|
, qtwebkit
|
||||||
, libkcddb, karchive, kcmutils, kfilemetadata, knewstuff, knotifyconfig, solid, kxmlgui
|
, libkcddb, karchive, kcmutils, kfilemetadata, knewstuff, knotifyconfig, solid, kxmlgui
|
||||||
, flac, lame, libmad, libmpcdec, libvorbis
|
, flac, lame, libmad, libmpcdec, libvorbis
|
||||||
, libsamplerate, libsndfile, taglib
|
, libsamplerate, libsndfile, taglib
|
||||||
, cdparanoia, cdrdao, cdrtools, dvdplusrwtools, libburn, libdvdcss, libdvdread, vcdimager
|
, cdparanoia, cdrdao, cdrtools, dvdplusrwtools, libburn, libdvdcss, libdvdread, vcdimager
|
||||||
, ffmpeg, libmusicbrainz3, normalize, sox, transcode, shared_mime_info, kinit
|
, ffmpeg, libmusicbrainz3, normalize, sox, transcode, kinit
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkDerivation {
|
mkDerivation {
|
||||||
@ -15,7 +15,7 @@ mkDerivation {
|
|||||||
maintainers = with maintainers; [ sander phreedom ];
|
maintainers = with maintainers; [ sander phreedom ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
nativeBuildInputs = [ extra-cmake-modules kdoctools makeWrapper shared_mime_info ];
|
nativeBuildInputs = [ extra-cmake-modules kdoctools makeWrapper ];
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
# qt
|
# qt
|
||||||
qtwebkit
|
qtwebkit
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
akonadi, akonadi-calendar, akonadi-contacts, akonadi-mime, akonadi-notes,
|
akonadi, akonadi-calendar, akonadi-contacts, akonadi-mime, akonadi-notes,
|
||||||
kalarmcal, kcalutils, kcontacts, kdav, kdelibs4support, kidentitymanagement,
|
kalarmcal, kcalutils, kcontacts, kdav, kdelibs4support, kidentitymanagement,
|
||||||
kimap, kmailtransport, kmbox, kmime, knotifications, knotifyconfig,
|
kimap, kmailtransport, kmbox, kmime, knotifications, knotifyconfig,
|
||||||
qtwebengine,
|
pimcommon, qtwebengine,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkDerivation {
|
mkDerivation {
|
||||||
@ -19,6 +19,7 @@ mkDerivation {
|
|||||||
akonadi akonadi-calendar akonadi-contacts akonadi-mime akonadi-notes
|
akonadi akonadi-calendar akonadi-contacts akonadi-mime akonadi-notes
|
||||||
kalarmcal kcalutils kcontacts kdav kdelibs4support kidentitymanagement kimap
|
kalarmcal kcalutils kcontacts kdav kdelibs4support kidentitymanagement kimap
|
||||||
kmailtransport kmbox kmime knotifications knotifyconfig qtwebengine
|
kmailtransport kmbox kmime knotifications knotifyconfig qtwebengine
|
||||||
|
pimcommon
|
||||||
];
|
];
|
||||||
# Attempts to build some files before dependencies have been generated
|
# Attempts to build some files before dependencies have been generated
|
||||||
enableParallelBuilding = false;
|
enableParallelBuilding = false;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
mkDerivation, lib, kdepimTeam,
|
mkDerivation, lib, kdepimTeam,
|
||||||
extra-cmake-modules, kdoctools,
|
extra-cmake-modules, kdoctools,
|
||||||
akonadi-search, kbookmarks, kcalutils, kcmutils, kcompletion, kconfig,
|
akonadi-search, kbookmarks, kcalutils, kcmutils, kcompletion, kconfig,
|
||||||
kconfigwidgets, kcoreaddons, kdelibs4support, kdepim-apps-libs,
|
kconfigwidgets, kcoreaddons, kdelibs4support, kdepim-apps-libs, libkdepim,
|
||||||
kdepim-runtime, kguiaddons, ki18n, kiconthemes, kinit, kio, kldap,
|
kdepim-runtime, kguiaddons, ki18n, kiconthemes, kinit, kio, kldap,
|
||||||
kmail-account-wizard, kmailtransport, knotifications, knotifyconfig,
|
kmail-account-wizard, kmailtransport, knotifications, knotifyconfig,
|
||||||
kontactinterface, kparts, kpty, kservice, ktextwidgets, ktnef, kwallet,
|
kontactinterface, kparts, kpty, kservice, ktextwidgets, ktnef, kwallet,
|
||||||
@ -20,7 +20,7 @@ mkDerivation {
|
|||||||
buildInputs = [
|
buildInputs = [
|
||||||
akonadi-search kbookmarks kcalutils kcmutils kcompletion kconfig
|
akonadi-search kbookmarks kcalutils kcmutils kcompletion kconfig
|
||||||
kconfigwidgets kcoreaddons kdelibs4support kdepim-apps-libs kguiaddons ki18n
|
kconfigwidgets kcoreaddons kdelibs4support kdepim-apps-libs kguiaddons ki18n
|
||||||
kiconthemes kinit kio kldap kmail-account-wizard kmailtransport
|
kiconthemes kinit kio kldap kmail-account-wizard kmailtransport libkdepim
|
||||||
knotifications knotifyconfig kontactinterface kparts kpty kservice
|
knotifications knotifyconfig kontactinterface kparts kpty kservice
|
||||||
ktextwidgets ktnef kwidgetsaddons kwindowsystem kxmlgui libgravatar
|
ktextwidgets ktnef kwidgetsaddons kwindowsystem kxmlgui libgravatar
|
||||||
libksieve mailcommon messagelib pim-sieve-editor qtscript qtwebengine
|
libksieve mailcommon messagelib pim-sieve-editor qtscript qtwebengine
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
qtwebengine,
|
qtwebengine,
|
||||||
kcmutils, kcrash, kdbusaddons, kwindowsystem,
|
kcmutils, kcrash, kdbusaddons, kwindowsystem,
|
||||||
akonadi, grantleetheme, kdepim-apps-libs, kontactinterface, kpimtextedit,
|
akonadi, grantleetheme, kdepim-apps-libs, kontactinterface, kpimtextedit,
|
||||||
mailcommon,
|
mailcommon, libkdepim
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkDerivation {
|
mkDerivation {
|
||||||
@ -18,6 +18,6 @@ mkDerivation {
|
|||||||
qtwebengine
|
qtwebengine
|
||||||
kcmutils kcrash kdbusaddons kwindowsystem
|
kcmutils kcrash kdbusaddons kwindowsystem
|
||||||
akonadi grantleetheme kdepim-apps-libs kontactinterface kpimtextedit
|
akonadi grantleetheme kdepim-apps-libs kontactinterface kpimtextedit
|
||||||
mailcommon
|
mailcommon libkdepim
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
extra-cmake-modules, kdoctools,
|
extra-cmake-modules, kdoctools,
|
||||||
akonadi, akonadi-mime, karchive, kcodecs, kcompletion, kconfigwidgets,
|
akonadi, akonadi-mime, karchive, kcodecs, kcompletion, kconfigwidgets,
|
||||||
kdbusaddons, kdesignerplugin, kiconthemes, kio, kitemmodels, kldap,
|
kdbusaddons, kdesignerplugin, kiconthemes, kio, kitemmodels, kldap,
|
||||||
kmailtransport, kwindowsystem, mailimporter, messagelib, phonon,
|
kmailtransport, kwindowsystem, mailimporter, messagelib, phonon, libkdepim
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkDerivation {
|
mkDerivation {
|
||||||
@ -16,7 +16,7 @@ mkDerivation {
|
|||||||
buildInputs = [
|
buildInputs = [
|
||||||
akonadi akonadi-mime karchive kcodecs kcompletion kconfigwidgets kdbusaddons
|
akonadi akonadi-mime karchive kcodecs kcompletion kconfigwidgets kdbusaddons
|
||||||
kdesignerplugin kiconthemes kio kitemmodels kldap kmailtransport
|
kdesignerplugin kiconthemes kio kitemmodels kldap kmailtransport
|
||||||
kwindowsystem mailimporter messagelib phonon
|
kwindowsystem mailimporter messagelib phonon libkdepim
|
||||||
];
|
];
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user