about summary refs log tree commit diff
path: root/pkgs/by-name/ke/keym/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/ke/keym/package.nix')
-rw-r--r--pkgs/by-name/ke/keym/package.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/by-name/ke/keym/package.nix b/pkgs/by-name/ke/keym/package.nix
new file mode 100644
index 0000000000000..387706b207cef
--- /dev/null
+++ b/pkgs/by-name/ke/keym/package.nix
@@ -0,0 +1,34 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, libX11
+, libXtst
+, libXi
+}:
+
+stdenv.mkDerivation {
+  pname = "keym";
+  version = "unstable-2022-07-10";
+
+  src = fetchFromGitHub {
+    owner = "cwkx";
+    repo = "keym";
+    rev = "67a6d39d45e17221353e06c39283b5636b46d25c";
+    hash = "sha256-v2eS7un2ABnpWBwuKq+0CeLX8ivtlNUjM2jRboKumOE=";
+  };
+
+  buildInputs = [ libX11 libXtst libXi ];
+
+  makeFlags = [
+    "PREFIX=$(out)"
+  ];
+
+  meta = with lib; {
+    homepage = "https://github.com/cwkx/keym";
+    description = "C tool to control mouse with keyboard for X11";
+    license = licenses.mit;
+    platforms = platforms.linux;
+    mainProgram = "keym";
+    maintainers = with maintainers; [ CompileTime ];
+  };
+}