about summary refs log tree commit diff
path: root/pkgs/tools/wayland
diff options
context:
space:
mode:
authorXavier Lambein <xlambein@gmail.com>2023-07-09 12:03:11 +0200
committerXavier Lambein <xlambein@gmail.com>2023-07-11 16:24:56 +0200
commita905df379928ecabf82f961c04d93c38afa8a58c (patch)
treeccf4a900efe2b8859f9f06b65627f177a7c8c108 /pkgs/tools/wayland
parent75c7fea0c1977596cedb22df9c129e85506fcba7 (diff)
wlr-which-key: init at 0.1.0
Co-authored-by: Jacob Moody <j4kem00dy@gmail.com>
Diffstat (limited to 'pkgs/tools/wayland')
-rw-r--r--pkgs/tools/wayland/wlr-which-key/default.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/tools/wayland/wlr-which-key/default.nix b/pkgs/tools/wayland/wlr-which-key/default.nix
new file mode 100644
index 0000000000000..470242871c783
--- /dev/null
+++ b/pkgs/tools/wayland/wlr-which-key/default.nix
@@ -0,0 +1,42 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, pkg-config
+, cairo
+, glib
+, libxkbcommon
+, pango
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "wlr-which-key";
+  version = "0.1.0";
+
+  src = fetchFromGitHub {
+    owner = "MaxVerevkin";
+    repo = "wlr-which-key";
+    rev = "v${version}";
+    hash = "sha256-GLTbUa5EfpJV7OACTlewAgGjd5Ub0fYHoW8f+EVrT14=";
+  };
+
+  cargoHash = "sha256-TtA4Ley5bwymF8Yiqso5fGAwGsT0GRlfAlGS5j4s0Qw=";
+
+  nativeBuildInputs = [
+    pkg-config
+  ];
+
+  buildInputs = [
+    cairo
+    glib
+    libxkbcommon
+    pango
+  ];
+
+  meta = with lib; {
+    description = "Keymap manager for wlroots-based compositors";
+    homepage = "https://github.com/MaxVerevkin/wlr-which-key";
+    license = licenses.gpl3Only;
+    maintainers = with maintainers; [ xlambein ];
+    platforms = platforms.linux;
+  };
+}