1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 10:31:36 +00:00
nixpkgs/pkgs/applications/window-managers/i3/wk-switch.nix

32 lines
806 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";
2019-05-10 18:22:21 +01:00
version = "2019-05-10";
2018-03-05 23:29:14 +00:00
src = fetchFromGitHub {
owner = "tmfink";
repo = pname;
2019-05-10 18:22:21 +01:00
rev = "05a2d5d35e9841d2a26630f1866fc0a0e8e708eb";
sha256 = "0ln192abdqrrs7rdazp9acbji2y6pf68z2d1by4nf2q529dh24dc";
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;
2018-03-05 23:29:14 +00:00
homepage = https://travisf.net/i3-wk-switcher;
};
}