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