From c17199d87a8a885535382124e2d9fa5d1c5bd502 Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Sat, 29 Apr 2023 12:52:24 +0200 Subject: [PATCH] xwaylandvideobridge: add --- home-manager/desktop.nix | 1 + pkgs/default.nix | 1 + pkgs/xwaylandvideobridge.nix | 48 ++++++++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 pkgs/xwaylandvideobridge.nix diff --git a/home-manager/desktop.nix b/home-manager/desktop.nix index 40546f3..bf5a3be 100644 --- a/home-manager/desktop.nix +++ b/home-manager/desktop.nix @@ -258,5 +258,6 @@ in { # zoom-us bin.y-cal-widget obsidian + xwaylandvideobridge ]; } diff --git a/pkgs/default.nix b/pkgs/default.nix index e037c00..e500cc6 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -43,5 +43,6 @@ libscrc = pyself.callPackage ./libscrc.nix {}; }; }; + xwaylandvideobridge = self.callPackage ./xwaylandvideobridge.nix {}; }) diff --git a/pkgs/xwaylandvideobridge.nix b/pkgs/xwaylandvideobridge.nix new file mode 100644 index 0000000..6576c18 --- /dev/null +++ b/pkgs/xwaylandvideobridge.nix @@ -0,0 +1,48 @@ +{ stdenv +, fetchFromGitLab +, cmake +, pkg-config +, extra-cmake-modules +, qt5 +, libsForQt5 +}: stdenv.mkDerivation rec { + pname = "xwaylandvideobridge"; + version = "unstable-2023-04-29"; + + src = fetchFromGitLab { + domain = "invent.kde.org"; + owner = "davidedmundson"; + repo = "xwaylandvideobridge"; + rev = "5efe47fdd6b90ed197c3e849fb7a1750bca3b643"; + hash = "sha256-gfQkOIZegxdFQ9IV2Qp/lLRtfI5/g6bDD3XRBdLh4q0="; + }; + + nativeBuildInputs = [ + cmake + extra-cmake-modules + pkg-config + qt5.wrapQtAppsHook + ]; + + postPatch = '' + sed -i /cursor_mode/d src/pwbypass.cpp + ''; + + buildInputs = [ + qt5.qtbase + qt5.qtquickcontrols2 + qt5.qtx11extras + libsForQt5.kdelibs4support + (libsForQt5.kpipewire.overrideAttrs (oldAttrs: { + version = "unstable-2023-03-28"; + + src = fetchFromGitLab { + domain = "invent.kde.org"; + owner = "plasma"; + repo = "kpipewire"; + rev = "ed99b94be40bd8c5b7b2a2f17d0622f11b2ab7fb"; + hash = "sha256-KhmhlH7gaFGrvPaB3voQ57CKutnw5DlLOz7gy/3Mzms="; + }; + })) + ]; +}