@@ -0,0 +1,26 @@
1+{ lib, rustPlatform, fetchFromGitHub }:
2+
3+rustPlatform.buildRustPackage rec {
4+ pname = "i3-auto-layout";
5+ version = "0.2";
6+
7+ src = fetchFromGitHub {
8+ owner = "chmln";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "0ps08lga6qkgc8cgf5cx2lgwlqcnd2yazphh9xd2fznnzrllfxxz";
12+ };
13+
14+ cargoSha256 = "1ch5mh515rlqmr65x96xcvrx6iaigqgjxc7sbwbznzkc5kmvwhc0";
15+
16+ # Currently no tests are implemented, so we avoid building the package twice
17+ doCheck = false;
18+
19+ meta = with lib; {
20+ description = "Automatic, optimal tiling for i3wm";
21+ homepage = "https://github.com/chmln/i3-auto-layout";
22+ license = licenses.mit;
23+ maintainers = with maintainers; [ mephistophiles ];
24+ platforms = platforms.linux;
25+ };
26+}