about summary refs log tree commit diff
path: root/overlays/patches/nixpkgs-wayland/pkgs/wtype/default.nix
blob: 40acdd235d74f5417529403ace32f1f9cd9b7dea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 ];
  };
}