uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
|||
diff --git a/kded/gtkconfig.cpp b/kded/gtkconfig.cpp
|
||||
index 5303636..199c4d5 100644
|
||||
--- a/kded/gtkconfig.cpp
|
||||
+++ b/kded/gtkconfig.cpp
|
||||
@@ -41,6 +41,16 @@ GtkConfig::GtkConfig(QObject *parent, const QVariantList&) :
|
||||
kdeglobalsConfigWatcher(KConfigWatcher::create(KSharedConfig::openConfig(QStringLiteral("kdeglobals")))),
|
||||
kwinConfigWatcher(KConfigWatcher::create(KSharedConfig::openConfig(QStringLiteral("kwinrc"))))
|
||||
{
|
||||
+ // Add GSETTINGS_SCHEMAS_PATH to the front of XDG_DATA_DIRS.
|
||||
+ // Normally this would be done by wrapGAppsHook, but this plugin
|
||||
+ // (shared object) cannot be wrapped.
|
||||
+ QByteArray xdgdata = qgetenv("XDG_DATA_DIRS");
|
||||
+ if (!xdgdata.isEmpty()) {
|
||||
+ xdgdata.push_front(":");
|
||||
+ }
|
||||
+ xdgdata.push_front(QByteArray(GSETTINGS_SCHEMAS_PATH));
|
||||
+ qputenv("XDG_DATA_DIRS", xdgdata);
|
||||
+
|
||||
QDBusConnection dbus = QDBusConnection::sessionBus();
|
||||
dbus.registerService(QStringLiteral("org.kde.GtkConfig"));
|
||||
dbus.registerObject(QStringLiteral("/GtkConfig"), this, QDBusConnection::ExportScriptableSlots);
|
||||
27
pkgs/desktops/plasma-5/kde-gtk-config/default.nix
Normal file
27
pkgs/desktops/plasma-5/kde-gtk-config/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules, wrapGAppsHook,
|
||||
glib, gtk2, gtk3, karchive, kcmutils, kconfigwidgets, ki18n, kiconthemes, kio,
|
||||
knewstuff, gsettings-desktop-schemas, xsettingsd, kdecoration, sass
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kde-gtk-config";
|
||||
nativeBuildInputs = [ extra-cmake-modules wrapGAppsHook ];
|
||||
dontWrapGApps = true; # There is nothing to wrap
|
||||
buildInputs = [
|
||||
ki18n kio glib gtk2 gtk3 karchive kcmutils kconfigwidgets kiconthemes
|
||||
knewstuff gsettings-desktop-schemas xsettingsd kdecoration sass
|
||||
];
|
||||
cmakeFlags = [
|
||||
"-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include"
|
||||
"-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2.out}/lib/gtk-2.0/include"
|
||||
"-DGLIB_SCHEMAS_DIR=${gsettings-desktop-schemas.out}/"
|
||||
];
|
||||
# The gtkconfig KDED module will crash the daemon if the GSettings schemas
|
||||
# aren't found.
|
||||
patches = [ ./0001-gsettings-schemas-path.patch ];
|
||||
preConfigure = ''
|
||||
NIX_CFLAGS_COMPILE+=" -DGSETTINGS_SCHEMAS_PATH=\"$GSETTINGS_SCHEMAS_PATH\""
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue