about summary refs log tree commit diff
path: root/pkgs/by-name/sh/showmethekey/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/sh/showmethekey/package.nix')
-rw-r--r--pkgs/by-name/sh/showmethekey/package.nix51
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/by-name/sh/showmethekey/package.nix b/pkgs/by-name/sh/showmethekey/package.nix
new file mode 100644
index 0000000000000..7faf5dec439e8
--- /dev/null
+++ b/pkgs/by-name/sh/showmethekey/package.nix
@@ -0,0 +1,51 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, meson
+, ninja
+, libevdev
+, json-glib
+, libinput
+, gtk4
+, libadwaita
+, wrapGAppsHook4
+, libxkbcommon
+, pkg-config
+}:
+
+stdenv.mkDerivation rec {
+  pname = "showmethekey";
+  version = "1.13.1";
+
+  src = fetchFromGitHub {
+    owner = "AlynxZhou";
+    repo = "showmethekey";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-kifUp/neqTBPRuZKqNdW6JOinzh9LKfppyvW9AgxAYo=";
+  };
+
+  nativeBuildInputs = [
+    meson
+    ninja
+    json-glib
+    pkg-config
+    wrapGAppsHook4
+  ];
+
+  buildInputs = [
+    gtk4
+    libadwaita
+    libevdev
+    libinput
+    libxkbcommon
+  ];
+
+  meta = with lib; {
+    description = "Show keys you typed on screen";
+    homepage = "https://showmethekey.alynx.one/";
+    changelog = "https://github.com/AlynxZhou/showmethekey/releases/tag/v${version}";
+    license = licenses.asl20;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ ocfox ];
+  };
+}