nixpkgs/pkgs/applications/window-managers/i3/wk-switch.nix

32 lines
808 B
Nix
Raw Normal View History

2019-05-10 18:22:21 +01:00
{ stdenv, fetchFromGitHub, python3Packages }:
2018-03-05 23:29:14 +00:00
2019-05-10 18:22:21 +01:00
python3Packages.buildPythonApplication rec {
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";
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 18:22:21 +01: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"
'';
meta = with stdenv.lib; {
2019-05-10 18:22:21 +01: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;
homepage = "https://travisf.net/i3-wk-switcher";
2018-03-05 23:29:14 +00:00
};
}