@@ -21,14 +21,14 @@
2121with python3Packages;
2222buildPythonApplication rec {
2323 pname = "kitty";
24− version = "0.19.1";
24+ version = "0.19.2";
2525 format = "other";
2626
2727 src = fetchFromGitHub {
2828 owner = "kovidgoyal";
2929 repo = "kitty";
3030 rev = "v${version}";
31− sha256 = "145fx4nnn0gszawllfwqf1h65ak0ij6ffargs7y0cgaxsc991s6m";
31+ sha256 = "06mlrc283k5f75y36fmmaxnj29jfc1s8vaykjph6a86m1gcl5wgi";
3232 };
3333
3434 buildInputs = [
@@ -53,10 +53,10 @@ buildPythonApplication rec {
5353
5454 nativeBuildInputs = [
5555 pkgconfig sphinx ncurses
56+ installShellFiles
5657 ] ++ stdenv.lib.optionals stdenv.isDarwin [
5758 imagemagick
5859 libicns # For the png2icns tool.
59− installShellFiles
6060 ];
6161
6262 propagatedBuildInputs = stdenv.lib.optional stdenv.isLinux libGL;
@@ -113,10 +113,10 @@ buildPythonApplication rec {
113113 wrapProgram "$out/bin/kitty" --prefix PATH : "$out/bin:${stdenv.lib.makeBinPath [ imagemagick xsel ncurses.dev ]}"
114114 runHook postInstall
115115
116− mkdir -p "$out/share/"{bash-completion/completions,fish/vendor_completions.d,zsh/site-functions}
117− "$out/bin/kitty" + complete setup fish > "$out/share/fish/vendor_completions.d/kitty.fish"
118− "$out/bin/kitty" + complete setup bash > "$out/share/bash-completion/completions/kitty.bash"
119− "$out/bin/kitty" + complete setup zsh > "$out/share/zsh/site-functions/_kitty"
116+ installShellCompletion --cmd kitty \
117+ --bash <("$out/bin/kitty" + complete setup bash) \
118+ --fish <("$out/bin/kitty" + complete setup fish) \
119+ --zsh <("$out/bin/kitty" + complete setup zsh)
120120 '';
121121
122122 postInstall = ''