Merge pull request #311655 from nmattia/nm-kitty

kitty: wrap correct executable on macOS
This commit is contained in:
Pol Dellaiera 2024-05-14 21:34:36 +02:00 committed by GitHub
commit e94e4b5396
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -210,7 +210,10 @@ buildPythonApplication rec {
cp -r linux-package/{bin,share,lib} "$out"
cp linux-package/bin/kitten "$kitten/bin/kitten"
''}
wrapProgram "$out/bin/kitty" --prefix PATH : "$out/bin:${lib.makeBinPath [ imagemagick ncurses.dev ]}"
# dereference the `kitty` symlink to make sure the actual executable
# is wrapped on macOS as well (and not just the symlink)
wrapProgram $(realpath "$out/bin/kitty") --prefix PATH : "$out/bin:${lib.makeBinPath [ imagemagick ncurses.dev ]}"
installShellCompletion --cmd kitty \
--bash <("$out/bin/kitty" +complete setup bash) \