Skip to content

Commit 3204173

Browse files
authored
Merge pull request #273453 from arthsmn/xwayland-run
xwayland-run: init at 0.0.2
2 parents f0ed84d + 15a6431 commit 3204173

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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+
}

0 commit comments

Comments
 (0)