1 { stdenv, lib, fetchFromGitHub, pkg-config, meson, cmake, ninja, gst_all_1, wrapQtAppsHook, qtbase, qtmultimedia, layer-shell-qt }:
3 gstreamerPath = with gst_all_1; lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" [
10 in stdenv.mkDerivation rec {
11 pname = "qt-video-wlr";
12 version = "2023-07-22";
14 src = fetchFromGitHub {
16 repo = "qt-video-wlr";
17 rev = "1373c8eeb0a5d867927ba30a9a9bb2d5b0057a87";
18 hash = "sha256-mg0ROD9kV88I5uCm+niAI5tJuhkmYC7Z8dixxrNow4c=";
24 cmake # only used for find layer-shell-qt
36 "--prefix PATH : $out/bin/qt-video-wlr"
37 "--prefix GST_PLUGIN_PATH : ${gstreamerPath}"
41 description = "Qt pip-mode-like video player for wlroots-based wayland compositors";
42 mainProgram = "qt-video-wlr";
43 homepage = "https://github.com/xdavidwu/qt-video-wlr";
44 license = licenses.mit;
45 maintainers = with maintainers; [ fionera rewine ];
46 platforms = with platforms; linux;