depot/third_party/nixpkgs/pkgs/kde/plasma/kde-gtk-config/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

24 lines
623 B
Nix

{
mkKdeDerivation,
pkg-config,
wrapGAppsHook,
sass,
qtsvg,
gsettings-desktop-schemas,
}:
mkKdeDerivation {
pname = "kde-gtk-config";
# 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\""
'';
extraNativeBuildInputs = [pkg-config wrapGAppsHook sass];
extraBuildInputs = [qtsvg];
dontWrapGApps = true; # There is nothing to wrap
extraCmakeFlags = ["-DGLIB_SCHEMAS_DIR=${gsettings-desktop-schemas.out}/"];
}