2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages }:
|
2018-03-05 23:29:14 +00:00
|
|
|
|
2019-05-10 17:22:21 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2018-03-06 10:39:49 +00:00
|
|
|
pname = "i3-wk-switch";
|
2020-03-19 16:51:41 +00:00
|
|
|
version = "2020-03-18";
|
2018-03-05 23:29:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmfink";
|
2018-03-06 10:39:49 +00:00
|
|
|
repo = pname;
|
2020-03-19 16:51:41 +00:00
|
|
|
rev = "a618cb8f52120aa8d533bb7c0c8de3ff13b3dc06";
|
|
|
|
sha256 = "0ci0w5igjk5xa8x4rx17cpgmdkamwjmavxhp0vp6213cl93ybjhz";
|
2018-03-05 23:29:14 +00:00
|
|
|
};
|
|
|
|
|
2019-05-10 17:22:21 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [ i3ipc ];
|
2018-03-05 23:29:14 +00:00
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
cp i3-wk-switch.py "$out/bin/i3-wk-switch"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-05-10 17:22:21 +00:00
|
|
|
description = "XMonad-like workspace switching for i3 and sway";
|
2018-03-05 23:29:14 +00:00
|
|
|
maintainers = with maintainers; [ synthetica ];
|
|
|
|
platforms = platforms.linux;
|
2018-03-06 00:00:44 +00:00
|
|
|
license = licenses.mit;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://travisf.net/i3-wk-switcher";
|
2018-03-05 23:29:14 +00:00
|
|
|
};
|
|
|
|
}
|