about summary refs log tree commit diff
path: root/pkgs/by-name/sw/sway-easyfocus/package.nix
blob: 022770a22344122a71897ed2d0bb70070df91c94 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, wrapGAppsHook
, atk
, cairo
, gdk-pixbuf
, glib
, gtk3
, pango
, gtk-layer-shell
}:

rustPlatform.buildRustPackage rec {
  pname = "sway-easyfocus";
  version = "unstable-2023-11-05";

  src = fetchFromGitHub {
    owner = "edzdez";
    repo = "sway-easyfocus";
    rev = "4c70f6728dbfc859e60505f0a7fd82f5a90ed42c";
    hash = "sha256-WvYXhf13ZCoa+JAF4bYgi5mI22i9pZLtbIhF1odqaTU=";
  };

  cargoHash = "sha256-9cN0ervcU8JojwG7J250fprbCD2rB9kh9TbRU+wCE/Y=";

  nativeBuildInputs = [
    pkg-config
    wrapGAppsHook
  ];

  buildInputs = [
    atk
    cairo
    gdk-pixbuf
    glib
    gtk3
    gtk-layer-shell
    pango
  ];

  meta = {
    description = "A tool to help efficiently focus windows in Sway, inspired by i3-easyfocus";
    homepage = "https://github.com/edzdez/sway-easyfocus";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ eclairevoyant ];
    mainProgram = "sway-easyfocus";
  };
}