Need help with wallpaper-engine-kde-plugin on NixOS 23.05.553.e7603eba51f (Stoat) x86_64

Hello everyone,

I am facing an issue with the wallpaper-engine-kde-plugin on my NixOS 23.05.553.e7603eba51f (Stoat) x86_64 system, and I’m hoping someone here can assist me. Firstly, I want to clarify that I am using ChatGPT to help me write this post.

I have recently installed the wallpaper-engine-kde-plugin using the KDE’s download plugin feature. However, when I try to use it, my desktop wallpaper only shows a black screen. I have also attempted to manually compile and install the plugin, but unfortunately, I encountered compilation errors.

I believe there might be something I am missing or a step I haven’t followed correctly. I have searched for solutions online, but I couldn’t find any specific instructions for NixOS or my particular version. I’m wondering if someone in this community has encountered a similar issue or has experience with NixOS and the wallpaper-engine-kde-plugin.

If you have any suggestions or insights on how to resolve this problem, I would greatly appreciate your help. Please let me know if you need any additional information from my side to assist me better.

Thank you in advance for your time and support!

Best regards,
龙C


I have resolved this issue. I made some modifications to the source code, and here is my configuration file.
wallpaper-engine-plasma-plugin.nix

{ mkDerivation
, fetchurl
, cmake
, extra-cmake-modules
, plasma-framework
, gst-libav
, mpv
, websockets
, qtwebsockets
, qtwebchannel
, qtdeclarative
, qtx11extras
, vulkan-headers
, vulkan-loader
, vulkan-tools
, pkg-config
, lz4
}:

mkDerivation rec {
  name = "wallpaper-engine-kde-plugin";
  version = "v0.5.5-nixos";
  cmakeFlags = [ "-DUSE_PLASMAPKG=OFF" ];
  nativeBuildInputs = [ cmake extra-cmake-modules pkg-config ];
  buildInputs = [ 
    plasma-framework mpv qtwebsockets websockets qtwebchannel
    qtdeclarative qtx11extras lz4
    vulkan-headers vulkan-tools vulkan-loader
  ];

  src = fetchurl {
    url = "https://longc.top/wallpaper-engine-kde-plugin.tar.gz";
    sha256 = "8mb9ro4OH1VpwmryvZjsld2xt5k5tUMJrf0RY4psCBg=";
  };
}

let
  wallpaper-engine-plasma-plugin = pkgs.plasma5Packages.callPackage ./wallpaper-engine-plasma-plugin.nix {
    inherit (pkgs.gst_all_1) gst-libav;
    inherit (pkgs.python3Packages) websockets;
  };
in
1 Like