1 { lib, fetchFromGitHub, rustPlatform
2 , xorg, python3, pkg-config, cairo, expat, libxkbcommon }:
4 rustPlatform.buildRustPackage rec {
8 src = fetchFromGitHub {
12 sha256 = "sha256-94MgE2j8HaS8IyzHEDtoqTls2A8xD96v2iAFx9XfMcw=";
15 cargoHash = "sha256-sSJAlDe1vBYs1vZW/X04cU14Wj1OF4Jy8oI4uWkrEjk=";
17 nativeBuildInputs = [ python3 pkg-config ];
18 buildInputs = [ cairo expat libxkbcommon xorg.xcbutilkeysyms ];
20 # For now, this is the only available featureset. This is also why the file is
21 # in the i3 folder, even though it might be useful for more than just i3
23 buildFeatures = [ "i3" ];
26 description = "Visually focus windows by label";
27 mainProgram = "wmfocus";
28 homepage = "https://github.com/svenstaro/wmfocus";
29 license = licenses.mit;
30 maintainers = with maintainers; [ synthetica ];
31 platforms = platforms.linux;