File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed
pkgs/by-name/xw/xwayland-run Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ { cage
2+ , fetchFromGitLab
3+ , gnome
4+ , lib
5+ , meson
6+ , ninja
7+ , python3
8+ , weston
9+ , xorg
10+ , xwayland
11+ , withMutter ? false
12+ , withCage ? false
13+ } :
14+ let
15+ compositors = [ weston ]
16+ ++ lib . optional withMutter gnome . mutter
17+ ++ lib . optional withCage cage
18+ ;
19+ in
20+ python3 . pkgs . buildPythonApplication rec {
21+ pname = "xwayland-run" ;
22+ version = "0.0.2" ;
23+
24+ src = fetchFromGitLab {
25+ domain = "gitlab.freedesktop.org" ;
26+ owner = "ofourdan" ;
27+ repo = "xwayland-run" ;
28+ rev = version ;
29+ hash = "sha256-+HdRLIizEdtKWD8HadQQf750e2t1AWa14U/Xwu3xPK4=" ;
30+ } ;
31+
32+ pyproject = false ;
33+
34+ outputs = [ "out" "man" ] ;
35+
36+ nativeBuildInputs = [
37+ meson
38+ ninja
39+ ] ;
40+
41+
42+ postInstall = ''
43+ wrapProgram $out/bin/wlheadless-run \
44+ --prefix PATH : ${ lib . makeBinPath compositors }
45+ wrapProgram $out/bin/xwayland-run \
46+ --prefix PATH : ${ lib . makeBinPath [ xwayland xorg . xauth ] }
47+ wrapProgram $out/bin/xwfb-run \
48+ --prefix PATH : ${ lib . makeBinPath ( compositors ++ [ xwayland xorg . xauth ] ) }
49+ '' ;
50+
51+ meta = with lib ; {
52+ description = "A set of small utilities revolving around running Xwayland and various Wayland compositor headless" ;
53+ homepage = "https://gitlab.freedesktop.org/ofourdan/xwayland-run" ;
54+ license = licenses . gpl2Only ;
55+ maintainers = with maintainers ; [ arthsmn ] ;
56+ platforms = platforms . linux ;
57+ } ;
58+ }
You can’t perform that action at this time.
0 commit comments