mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
82 lines
1.7 KiB
Nix
82 lines
1.7 KiB
Nix
{
|
|
fetchFromGitLab,
|
|
lib,
|
|
meson,
|
|
ninja,
|
|
python3,
|
|
weston,
|
|
xorg,
|
|
xwayland,
|
|
withCage ? false,
|
|
cage,
|
|
withKwin ? false,
|
|
kdePackages,
|
|
withMutter ? false,
|
|
gnome,
|
|
withDbus ? withMutter,
|
|
dbus, # Since 0.0.3, mutter compositors run with their own DBUS sessions
|
|
}:
|
|
let
|
|
compositors =
|
|
[ weston ]
|
|
++ lib.optional withCage cage
|
|
++ lib.optional withKwin kdePackages.kwin
|
|
++ lib.optional withMutter gnome.mutter
|
|
++ lib.optional withDbus dbus;
|
|
in
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "xwayland-run";
|
|
version = "0.0.4";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.freedesktop.org";
|
|
owner = "ofourdan";
|
|
repo = "xwayland-run";
|
|
rev = version;
|
|
hash = "sha256-FP/2KNPehZEGKXr+fKdVj4DXzRMpfc3x7K6vH6ZsGdo=";
|
|
};
|
|
|
|
pyproject = false;
|
|
|
|
outputs = [
|
|
"out"
|
|
"man"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/wlheadless-run \
|
|
--prefix PATH : ${lib.makeBinPath compositors}
|
|
wrapProgram $out/bin/xwayland-run \
|
|
--prefix PATH : ${
|
|
lib.makeBinPath [
|
|
xwayland
|
|
xorg.xauth
|
|
]
|
|
}
|
|
wrapProgram $out/bin/xwfb-run \
|
|
--prefix PATH : ${
|
|
lib.makeBinPath (
|
|
compositors
|
|
++ [
|
|
xwayland
|
|
xorg.xauth
|
|
]
|
|
)
|
|
}
|
|
'';
|
|
|
|
meta = {
|
|
changelog = "https://gitlab.freedesktop.org/ofourdan/xwayland-run/-/releases/${src.rev}";
|
|
description = "Set of small utilities revolving around running Xwayland and various Wayland compositor headless";
|
|
homepage = "https://gitlab.freedesktop.org/ofourdan/xwayland-run";
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = with lib.maintainers; [ arthsmn ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|