jetbrains: useFetchCargoVendor (#377020)
[NixPkgs.git] / pkgs / by-name / sw / sway-easyfocus / package.nix
blob65d7ed9018c2c0fa82d52250e9a69d6709490922
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   pkg-config,
6   wrapGAppsHook3,
7   atk,
8   cairo,
9   gdk-pixbuf,
10   glib,
11   gtk3,
12   pango,
13   gtk-layer-shell,
16 rustPlatform.buildRustPackage rec {
17   pname = "sway-easyfocus";
18   version = "0.2.0";
20   src = fetchFromGitHub {
21     owner = "edzdez";
22     repo = "sway-easyfocus";
23     tag = version;
24     hash = "sha256-ogqstgJqUczn0LDwpOAppC1J/Cs0IEOAXjNAnbiKn6M=";
25   };
27   cargoHash = "sha256-lAyKW6tjb4lVNA8xtvXLYYiLeKxSe/yfyY6h/f/WuP4=";
29   nativeBuildInputs = [
30     pkg-config
31     wrapGAppsHook3
32   ];
34   buildInputs = [
35     atk
36     cairo
37     gdk-pixbuf
38     glib
39     gtk3
40     gtk-layer-shell
41     pango
42   ];
44   meta = {
45     description = "Tool to help efficiently focus windows in Sway, inspired by i3-easyfocus";
46     homepage = "https://github.com/edzdez/sway-easyfocus";
47     license = lib.licenses.mit;
48     maintainers = with lib.maintainers; [ pjones ];
49     mainProgram = "sway-easyfocus";
50   };