https://bugs.kde.org/show_bug.cgi?id=402154

--- Comment #54 from André M <andre.vma...@gmail.com> ---
(In reply to tagwerk19 from comment #53)
> (In reply to André M from comment #52)
> > I've been testing the patch on NixOS on kf 5.106, and it's working great
> > across 3 reboots of a couple of mounted subvolumes.
> Can you share how you've done this? At the moment I have baloo from unstable:

>From what you said, it looks like you're on nixos stable (22.11 I suppose), and
trying unstable for specific packages; baloo itself is a kdeFrameworks, so it's
harder to override, because it gets pulled indirectly by other kde packages
when you `services.xserver.desktopManager.plasma5.enable = true`, therefore,
the best way I know would be to replace the whole plasma5Packages scope using
an overlay (it'll still trigger several recompilations, because again baloo is
an indirect dependency of several packages):

  final: prev: let
    nixos-unstable = import <nixos-unstable> {inherit (prev) system;};
  in {
    plasma5Packages = nixos-unstable.plasma5Packages.overrideScope' (finalx:
prevx: let
      kdeFrameworks = prevx.kdeFrameworks.overrideScope' (finaly: prevy: {
        baloo = prevy.baloo.overrideAttrs (attrs: {
          version = "${attrs.version}-patched";
          patches =
            (attrs.patches or [])
            ++ [
              # baloo in btrfs
              (final.fetchpatch {
                url = "https://bugsfiles.kde.org/attachment.cgi?id=159031";;
                sha256 = "sha256-hCtNXUpRhIP94f7gpwTGWWh1h/7JRRJaRASIwHWQjnY=";
              })
            ];
        });
      });
    in (kdeFrameworks // {inherit kdeFrameworks;}));
  }

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to