2024-01-02 11:29:13 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, pkg-config, meson, cmake, ninja, gst_all_1, wrapQtAppsHook, qtbase, qtmultimedia, layer-shell-qt }:
|
2020-08-20 17:08:02 +00:00
|
|
|
let
|
2022-01-26 04:04:25 +00:00
|
|
|
gstreamerPath = with gst_all_1; lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" [
|
2020-08-20 17:08:02 +00:00
|
|
|
gstreamer
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-bad
|
|
|
|
gst-plugins-ugly
|
|
|
|
];
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "qt-video-wlr";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2023-07-22";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xdavidwu";
|
|
|
|
repo = "qt-video-wlr";
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = "1373c8eeb0a5d867927ba30a9a9bb2d5b0057a87";
|
|
|
|
hash = "sha256-mg0ROD9kV88I5uCm+niAI5tJuhkmYC7Z8dixxrNow4c=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
meson
|
|
|
|
cmake # only used for find layer-shell-qt
|
|
|
|
ninja
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
buildInputs = [
|
2024-01-02 11:29:13 +00:00
|
|
|
qtbase
|
|
|
|
qtmultimedia
|
|
|
|
layer-shell-qt
|
2020-08-20 17:08:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
qtWrapperArgs = [
|
2024-01-02 11:29:13 +00:00
|
|
|
"--prefix PATH : $out/bin/qt-video-wlr"
|
|
|
|
"--prefix GST_PLUGIN_PATH : ${gstreamerPath}"
|
2020-08-20 17:08:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Qt pip-mode-like video player for wlroots-based wayland compositors";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "qt-video-wlr";
|
2020-08-20 17:08:02 +00:00
|
|
|
homepage = "https://github.com/xdavidwu/qt-video-wlr";
|
|
|
|
license = licenses.mit;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [ fionera rewine ];
|
2020-08-20 17:08:02 +00:00
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|