Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / window-managers / i3 / wk-switch.nix
blobe077254b70f491a1a0fae03c3b50503929535a7c
1 { lib, fetchFromGitHub, python3Packages }:
3 python3Packages.buildPythonApplication rec {
4   pname = "i3-wk-switch";
5   version = "2020-03-18";
6   format = "other";
8   src = fetchFromGitHub {
9     owner = "tmfink";
10     repo = pname;
11     rev = "a618cb8f52120aa8d533bb7c0c8de3ff13b3dc06";
12     sha256 = "0ci0w5igjk5xa8x4rx17cpgmdkamwjmavxhp0vp6213cl93ybjhz";
13   };
15   propagatedBuildInputs = with python3Packages; [ i3ipc ];
17   dontBuild = true;
18   doCheck = false;
20   installPhase = ''
21     mkdir -p "$out/bin"
22     cp i3-wk-switch.py "$out/bin/i3-wk-switch"
23   '';
25   meta = with lib; {
26     description = "XMonad-like workspace switching for i3 and sway";
27     maintainers = with maintainers; [ synthetica ];
28     platforms = platforms.linux;
29     license = licenses.mit;
30     homepage = "https://travisf.net/i3-wk-switcher";
31   };