depot/third_party/nixpkgs/pkgs/desktops/plasma-5/kde-gtk-config/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

48 lines
979 B
Nix

{ mkDerivation
, extra-cmake-modules
, wrapGAppsHook3
, glib
, gtk3
, karchive
, kcmutils
, kconfigwidgets
, ki18n
, kiconthemes
, kio
, knewstuff
, gsettings-desktop-schemas
, xsettingsd
, kdecoration
, sass
}:
mkDerivation {
pname = "kde-gtk-config";
nativeBuildInputs = [ extra-cmake-modules wrapGAppsHook3 ];
dontWrapGApps = true; # There is nothing to wrap
buildInputs = [
ki18n
kio
glib
gtk3
karchive
kcmutils
kconfigwidgets
kiconthemes
knewstuff
gsettings-desktop-schemas
xsettingsd
kdecoration
sass
];
cmakeFlags = [
"-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-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\""
'';
}