1{
2 lib,
3 fetchFromGitHub,
4 python3Packages,
5}:
6
7python3Packages.buildPythonApplication rec {
8 pname = "i3-wk-switch";
9 version = "2020-03-18";
10 format = "other";
11
12 src = fetchFromGitHub {
13 owner = "tmfink";
14 repo = pname;
15 rev = "a618cb8f52120aa8d533bb7c0c8de3ff13b3dc06";
16 sha256 = "0ci0w5igjk5xa8x4rx17cpgmdkamwjmavxhp0vp6213cl93ybjhz";
17 };
18
19 propagatedBuildInputs = with python3Packages; [ i3ipc ];
20
21 dontBuild = true;
22 doCheck = false;
23
24 installPhase = ''
25 mkdir -p "$out/bin"
26 cp i3-wk-switch.py "$out/bin/i3-wk-switch"
27 '';
28
29 meta = with lib; {
30 description = "XMonad-like workspace switching for i3 and sway";
31 mainProgram = "i3-wk-switch";
32 maintainers = with maintainers; [ synthetica ];
33 platforms = platforms.linux;
34 license = licenses.mit;
35 homepage = "https://travisf.net/i3-wk-switcher";
36 };
37}