2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, libevdev
|
|
|
|
, json-glib
|
|
|
|
, libinput
|
|
|
|
, gtk4
|
2024-01-02 11:29:13 +00:00
|
|
|
, libadwaita
|
2022-10-21 18:38:19 +00:00
|
|
|
, wrapGAppsHook4
|
2022-08-12 12:06:08 +00:00
|
|
|
, libxkbcommon
|
|
|
|
, pkg-config
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "showmethekey";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.12.0";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AlynxZhou";
|
2023-02-02 18:25:31 +00:00
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-eeObomb4Gv/vpvViHsi3+O0JR/rYamrlZNZaXKL6KJw=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
json-glib
|
|
|
|
pkg-config
|
2022-10-21 18:38:19 +00:00
|
|
|
wrapGAppsHook4
|
2022-08-12 12:06:08 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk4
|
2024-01-02 11:29:13 +00:00
|
|
|
libadwaita
|
2023-02-02 18:25:31 +00:00
|
|
|
libevdev
|
|
|
|
libinput
|
|
|
|
libxkbcommon
|
2022-08-12 12:06:08 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://showmethekey.alynx.one/";
|
|
|
|
description = "Show keys you typed on screen";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ ocfox ];
|
|
|
|
};
|
|
|
|
}
|