Wallpaper Engine on NixOS (wallpaper-engine-kde-plugin)

I copied your config for wallpaper engine one by one and if I set

"-DUSE_PLASMAPKG=OFF"

wallpaper engine gets installed and I do not need to install it manually. But I always get the missing dependencies error mentioned above.