about summary refs log tree commit diff
path: root/overlays/patches/nixpkgs-wayland/pkgs/wtype/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'overlays/patches/nixpkgs-wayland/pkgs/wtype/default.nix')
-rw-r--r--overlays/patches/nixpkgs-wayland/pkgs/wtype/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/overlays/patches/nixpkgs-wayland/pkgs/wtype/default.nix b/overlays/patches/nixpkgs-wayland/pkgs/wtype/default.nix
new file mode 100644
index 000000000000..40acdd235d74
--- /dev/null
+++ b/overlays/patches/nixpkgs-wayland/pkgs/wtype/default.nix
@@ -0,0 +1,36 @@
+{ stdenv, fetchFromGitHub
+, pkgconfig, meson, ninja
+, wayland, wayland-protocols
+, libxkbcommon
+}:
+
+let
+  metadata = import ./metadata.nix;
+in
+stdenv.mkDerivation rec {
+  name = "wtype-${version}";
+  version = metadata.rev;
+
+  src = fetchFromGitHub {
+    owner = "atx";
+    repo = "wtype";
+    rev = metadata.rev;
+    sha256 = metadata.sha256;
+  };
+
+  nativeBuildInputs = [ pkgconfig meson ninja ];
+  buildInputs = [
+    wayland wayland-protocols
+    libxkbcommon
+  ];
+
+  enableParallelBuilding = true;
+
+  meta = with stdenv.lib; {
+    description = "xdotool type for wayland";
+    homepage    = "https://github.com/atx/wtype";
+    license     = licenses.mit;
+    platforms   = platforms.linux;
+    maintainers = with maintainers; [ colemickens ];
+  };
+}