dotfiles/pkgs/xwaylandvideobridge.nix

53 lines
1.2 KiB
Nix
Raw Normal View History

2023-04-29 12:52:24 +02:00
{ stdenv
, fetchFromGitLab
, cmake
2023-06-04 17:44:21 +02:00
, fetchpatch
2023-04-29 12:52:24 +02:00
, pkg-config
, extra-cmake-modules
, qt5
, libsForQt5
}: stdenv.mkDerivation rec {
pname = "xwaylandvideobridge";
2023-06-04 17:44:21 +02:00
version = "unstable-2023-06-04";
2023-04-29 12:52:24 +02:00
src = fetchFromGitLab {
domain = "invent.kde.org";
2023-06-04 17:44:21 +02:00
owner = "system";
2023-04-29 12:52:24 +02:00
repo = "xwaylandvideobridge";
2023-06-04 17:44:21 +02:00
rev = "75f68526fb3d2a4e1af6644e49dfdc8d9e56985c";
hash = "sha256-GvutiwF9FxtZ2ehd6dsR3ZY8Mq6/4k1TDpz+xE8SusE=";
2023-04-29 12:52:24 +02:00
};
nativeBuildInputs = [
cmake
extra-cmake-modules
pkg-config
qt5.wrapQtAppsHook
];
2023-06-04 17:44:21 +02:00
patches = [
(fetchpatch {
url = "https://aur.archlinux.org/cgit/aur.git/plain/cursor-mode.patch?h=xwaylandvideobridge-cursor-mode-2-git";
hash = "sha256-649kCs3Fsz8VCgGpZ952Zgl8txAcTgakLoMusaJQYa4=";
})
];
2023-04-29 12:52:24 +02:00
buildInputs = [
qt5.qtbase
qt5.qtquickcontrols2
qt5.qtx11extras
libsForQt5.kdelibs4support
(libsForQt5.kpipewire.overrideAttrs (oldAttrs: {
2023-06-04 17:44:21 +02:00
version = "5.27.5";
2023-04-29 12:52:24 +02:00
src = fetchFromGitLab {
domain = "invent.kde.org";
owner = "plasma";
repo = "kpipewire";
2023-06-04 17:44:21 +02:00
rev = "v5.27.5";
hash = "sha256-xcuSWURiyY9iuayeY9w6G59UJTbYXyPWGg8x+EiXNsY=";
2023-04-29 12:52:24 +02:00
};
}))
];
}