Add wayland-push-to-talk-fix

master
Yorick van Pelt 2023-03-22 11:35:37 +01:00
parent d2bf5334ce
commit 25bee6dd76
Signed by: yorick
GPG Key ID: A36E70F9DC014A15
3 changed files with 19 additions and 0 deletions

View File

@ -261,6 +261,7 @@ in {
calibre
chromium
discord
wayland-push-to-talk-fix
fanficfare
feh
gimp

View File

@ -33,5 +33,6 @@
runHook postInstall
'';
});
wayland-push-to-talk-fix = self.callPackage ./wayland-push-to-talk-fix.nix {};
})

View File

@ -0,0 +1,17 @@
{ stdenv, libevdev, xdotool, xorg, pkg-config, fetchFromGitHub }:
stdenv.mkDerivation {
pname = "wayland-push-to-talk-fix";
version = "0.1";
src = fetchFromGitHub {
owner = "yorickvP";
repo = "wayland-push-to-talk-fix";
rev = "57131c6983b083bb4677df9a073e66b84825b256";
hash = "sha256-46wk4sJTqNIU01wWnlcPU5rmzZHRcgUzVnYYJy95L7A=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ xorg.libX11 xorg.xorgproto xdotool libevdev ];
installPhase = ''
mkdir -p $out/bin
cp push-to-talk $out/bin/wayland-push-to-talk-fix
'';
}