about summary refs log tree commit diff
path: root/pkgs/tools/wayland/xwaylandvideobridge/default.nix
blob: f87e678bdba988f9a00ecb036601c43f9a6ad346 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{ lib
, stdenv
, fetchurl
, cmake
, extra-cmake-modules
, pkg-config
, qtbase
, qtdeclarative
, qtx11extras ? null  # qt5 only
, kcoreaddons
, ki18n
, knotifications
, kpipewire
, kstatusnotifieritem ? null  # qt6 only
, kwindowsystem
, wrapQtAppsHook
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "xwaylandvideobridge";
  version = "0.4.0";

  src = fetchurl {
    url = "mirror://kde/stable/xwaylandvideobridge/xwaylandvideobridge-${finalAttrs.version}.tar.xz";
    hash = "sha256-6nKseypnV46ZlNywYZYC6tMJekb7kzZmHaIA5jkn6+Y=";
  };

  nativeBuildInputs = [
    cmake
    extra-cmake-modules
    pkg-config
    wrapQtAppsHook
  ];

  buildInputs = [
    qtbase
    qtdeclarative
    qtx11extras
    kcoreaddons
    ki18n
    knotifications
    kpipewire
    kstatusnotifieritem
    kwindowsystem
  ];

  cmakeFlags = ["-DQT_MAJOR_VERSION=${lib.versions.major qtbase.version}"];

  meta = {
    description = "Utility to allow streaming Wayland windows to X applications";
    homepage = "https://invent.kde.org/system/xwaylandvideobridge";
    license = with lib.licenses; [ bsd3 cc0 gpl2Plus ];
    maintainers = with lib.maintainers; [ stepbrobd ];
    platforms = lib.platforms.linux;
    mainProgram = "xwaylandvideobridge";
  };
})