mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +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
68 lines
1.5 KiB
Nix
68 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
meson,
|
|
pkg-config,
|
|
wayland-scanner,
|
|
ninja,
|
|
cairo,
|
|
libinput,
|
|
pango,
|
|
wayland,
|
|
wayland-protocols,
|
|
libxkbcommon,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wshowkeys-unstable";
|
|
version = "2021-08-01";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ammgws";
|
|
repo = "wshowkeys";
|
|
rev = "e8bfc78f08ebdd1316daae59ecc77e62bba68b2b";
|
|
sha256 = "sha256-/HvNCQWsXOJZeCxHWmsLlbBDhBzF7XP/SPLdDiWMDC4=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
nativeBuildInputs = [
|
|
meson
|
|
pkg-config
|
|
wayland-scanner
|
|
ninja
|
|
];
|
|
buildInputs = [
|
|
cairo
|
|
libinput
|
|
pango
|
|
wayland
|
|
wayland-protocols
|
|
libxkbcommon
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Displays keys being pressed on a Wayland session";
|
|
longDescription = ''
|
|
Displays keypresses on screen on supported Wayland compositors (requires
|
|
wlr_layer_shell_v1 support).
|
|
Note: This tool requires root permissions to read input events, but these
|
|
permissions are dropped after startup. The NixOS module provides such a
|
|
setuid binary (use "programs.wshowkeys.enable = true;").
|
|
'';
|
|
homepage = "https://github.com/ammgws/wshowkeys";
|
|
license = with licenses; [
|
|
gpl3Only
|
|
mit
|
|
];
|
|
# Some portions of the code are taken from Sway which is MIT licensed.
|
|
# TODO: gpl3Only or gpl3Plus (ask upstream)?
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [
|
|
primeos
|
|
berbiche
|
|
];
|
|
mainProgram = "wshowkeys";
|
|
};
|
|
}
|