1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "i3-auto-layout";
9 version = "unstable-2022-05-29";
10
11 src = fetchFromGitHub {
12 owner = "chmln";
13 repo = pname;
14 rev = "9e41eb3891991c35b7d35c9558e788899519a983";
15 sha256 = "sha256-gpVYVyh+2y4Tttvw1SuCf7mx/nxR330Ob2R4UmHZSJs=";
16 };
17
18 cargoHash = "sha256-oKpcYhD9QNW+8gFVybDEnz58cZ+2Bf4bwYuflXiJ1jc=";
19
20 # Currently no tests are implemented, so we avoid building the package twice
21 doCheck = false;
22
23 meta = with lib; {
24 description = "Automatic, optimal tiling for i3wm";
25 mainProgram = "i3-auto-layout";
26 homepage = "https://github.com/chmln/i3-auto-layout";
27 license = licenses.mit;
28 maintainers = with maintainers; [
29 mephistophiles
30 perstark
31 ];
32 platforms = platforms.linux;
33 };
34}