2018-03-06 00:29:14 +01:00
|
|
|
{ stdenv, fetchFromGitHub, python2Packages }:
|
|
|
|
|
|
|
|
python2Packages.buildPythonApplication rec {
|
2018-03-06 11:39:49 +01:00
|
|
|
pname = "i3-wk-switch";
|
2018-03-06 00:29:14 +01:00
|
|
|
version = "2017-08-21";
|
|
|
|
|
|
|
|
# https://github.com/tmfink/i3-wk-switch/commit/484f840bc4c28ddc60fa3be81e2098f7689e78fb
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmfink";
|
2018-03-06 11:39:49 +01:00
|
|
|
repo = pname;
|
2018-03-06 00:29:14 +01:00
|
|
|
rev = "484f840";
|
|
|
|
sha256 = "0nrc13ld5bx07wrgnpzgpbaixb4rpi93xiapvyb8srd49fj9pcmb";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python2Packages; [ i3-py ];
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
cp i3-wk-switch.py "$out/bin/i3-wk-switch"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "XMonad-like workspace switching for i3";
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|