Skip to content

Commit

Permalink
Merge pull request #82288 from Luflosi/kitty-man-page-darwin
Browse files Browse the repository at this point in the history
kitty: install man page on Darwin
  • Loading branch information
Ma27 committed Mar 11, 2020
2 parents 9c4f24a + ae297d5 commit 569d6d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/applications/misc/kitty/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
harfbuzz, fontconfig, pkgconfig, ncurses, imagemagick, xsel,
libstartup_notification, libGL, libX11, libXrandr, libXinerama, libXcursor,
libxkbcommon, libXi, libXext, wayland-protocols, wayland,
installShellFiles,
which, dbus,
Cocoa,
CoreGraphics,
Expand Down Expand Up @@ -53,6 +54,7 @@ buildPythonApplication rec {
] ++ stdenv.lib.optionals stdenv.isDarwin [
imagemagick
libicns # For the png2icns tool.
installShellFiles
];

propagatedBuildInputs = stdenv.lib.optional stdenv.isLinux libGL;
Expand All @@ -78,6 +80,7 @@ buildPythonApplication rec {

buildPhase = if stdenv.isDarwin then ''
${python.interpreter} setup.py kitty.app --update-check-interval=0
make man
'' else ''
${python.interpreter} setup.py linux-package --update-check-interval=0
'';
Expand All @@ -90,6 +93,8 @@ buildPythonApplication rec {
ln -s ../Applications/kitty.app/Contents/MacOS/kitty "$out/bin/kitty"
mkdir "$out/Applications"
cp -r kitty.app "$out/Applications/kitty.app"
installManPage 'docs/_build/man/kitty.1'
'' else ''
cp -r linux-package/{bin,share,lib} $out
''}
Expand Down

0 comments on commit 569d6d0

Please sign in to comment.