1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5 libxcb,
6 python3,
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "i3wsr";
11 version = "3.1.2";
12
13 src = fetchFromGitHub {
14 owner = "roosta";
15 repo = "i3wsr";
16 rev = "v${version}";
17 hash = "sha256-8cQM2M9XjS4FSSX1/WHqmTP842Ahd1XoaqOWSGSEE0s=";
18 };
19
20 cargoHash = "sha256-d+pFDvmfsuJbanUlheHxln9BY1HxU3UQE+pWRthGcc4=";
21
22 nativeBuildInputs = [ python3 ];
23 buildInputs = [ libxcb ];
24
25 # has not tests
26 doCheck = false;
27
28 meta = with lib; {
29 mainProgram = "i3wsr";
30 description = "Automatically change i3 workspace names based on their contents";
31 longDescription = ''
32 Automatically sets the workspace names to match the windows on the workspace.
33 The chosen name for a workspace is a user-defined composite of the WM_CLASS X11
34 window property for each window in a workspace.
35 '';
36 homepage = "https://github.com/roosta/i3wsr";
37 license = licenses.mit;
38 maintainers = [ maintainers.sebbadk ];
39 };
40}