blob: 133496c7f23a936214d4f1488e6a8afc3638a27a (
plain)
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
|
{ stdenv, fetchFromGitHub, rustPlatform,
xorg, python3, pkgconfig, cairo, libxkbcommon }:
let
metadata = import ./metadata.nix;
pname = "wmfocus";
version = metadata.rev;
hash = metadata.sha256;
in
rustPlatform.buildRustPackage {
inherit pname version;
name = "${pname}-${version}";
nativeBuildInputs = [ python3 pkgconfig ];
buildInputs = [ cairo libxkbcommon xorg.xcbutilkeysyms ];
# For now, this is the only available featureset. This is also why the file is
# in the i3 folder, even though it might be useful for more than just i3
# users.
cargoBuildFlags = ["--features i3"];
src = fetchFromGitHub {
owner = "svenstaro";
repo = pname;
rev = version;
sha256 = hash;
};
cargoSha256 = "01ifrk6whvckys1kbj65cdwh976yn7dy9vpf4jybnlqripknab43";
meta = with stdenv.lib; {
description = ''
Tool that allows you to rapidly choose a specific window directly
without having to use the mouse or directional keyboard navigation.
'';
maintainers = with maintainers; [ synthetica ];
platforms = platforms.linux;
license = licenses.mit;
homepage = https://github.com/svenstaro/wmfocus;
};
}
|