about summary refs log tree commit diff
path: root/pkgs/kde/gear/krfb/default.nix
blob: eadb9fffb756e436f6b5b49855f3d1b39cc80b05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  mkKdeDerivation,
  fetchpatch,
  qtwayland,
  libvncserver,
  xorg,
}:
mkKdeDerivation {
  pname = "krfb";

  # Backports.
  # FIXME: remove in next release
  patches = [
    # Build fix for Qt 6.7.1
    ./fix-build-with-qt-6.7.1.diff
    # Wayland crash fix
    (fetchpatch {
      url = "https://invent.kde.org/network/krfb/-/commit/6e7a5ba56966ea1b67400be9ab7c82885abb76be.diff";
      hash = "sha256-kqD4B2Nixw8KMCOc4RpoEmvII2JZYBPxog6TT/BPuFs=";
    })
  ];

  extraCmakeFlags = [
    "-DQtWaylandScanner_EXECUTABLE=${qtwayland}/libexec/qtwaylandscanner"
  ];

  extraBuildInputs = [qtwayland libvncserver xorg.libXdamage];
}