From 5ae3ae8e166b3848064a10e08e294eadd12b1c81 Mon Sep 17 00:00:00 2001 From: Artturin Date: Tue, 28 Sep 2021 18:59:49 +0300 Subject: [PATCH] wshowkeys: switch to a working fork --- pkgs/tools/wayland/wshowkeys/default.nix | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/pkgs/tools/wayland/wshowkeys/default.nix b/pkgs/tools/wayland/wshowkeys/default.nix index 00dc1d74910..32fb81fe188 100644 --- a/pkgs/tools/wayland/wshowkeys/default.nix +++ b/pkgs/tools/wayland/wshowkeys/default.nix @@ -1,20 +1,17 @@ -{ lib, stdenv, fetchFromSourcehut +{ lib, stdenv, fetchFromGitHub , meson, pkg-config, wayland-scanner, ninja , cairo, libinput, pango, wayland, wayland-protocols, libxkbcommon }: -let - version = "2020-03-29"; - commit = "6388a49e0f431d6d5fcbd152b8ae4fa8e87884ee"; -in stdenv.mkDerivation rec { +stdenv.mkDerivation rec { pname = "wshowkeys-unstable"; - inherit version; + version = "2021-08-01"; - src = fetchFromSourcehut { - owner = "~sircmpwn"; + src = fetchFromGitHub { + owner = "ammgws"; repo = "wshowkeys"; - rev = commit; - sha256 = "10kafdja5cwbypspwhvaxjz3hvf51vqjzbgdasl977193cvxgmbs"; + rev = "e8bfc78f08ebdd1316daae59ecc77e62bba68b2b"; + sha256 = "sha256-/HvNCQWsXOJZeCxHWmsLlbBDhBzF7XP/SPLdDiWMDC4="; }; nativeBuildInputs = [ meson pkg-config wayland-scanner ninja ]; @@ -29,13 +26,11 @@ in stdenv.mkDerivation rec { permissions are dropped after startup. The NixOS module provides such a setuid binary (use "programs.wshowkeys.enable = true;"). ''; - homepage = "https://git.sr.ht/~sircmpwn/wshowkeys"; + 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.unix; maintainers = with maintainers; [ primeos berbiche ]; - broken = true; # Unmaintained and fails to run (Wayland protocol error) - # TODO (@primeos): Remove this package after the NixOS 21.11 branch-off }; }