kitty: install man page on Darwin
On Linux the man page is already being built with `setup.py linux-package` and later copied to the correct location.
This commit is contained in:
parent
7f1b6576b5
commit
ae297d5247
@ -2,6 +2,7 @@
|
|||||||
harfbuzz, fontconfig, pkgconfig, ncurses, imagemagick, xsel,
|
harfbuzz, fontconfig, pkgconfig, ncurses, imagemagick, xsel,
|
||||||
libstartup_notification, libGL, libX11, libXrandr, libXinerama, libXcursor,
|
libstartup_notification, libGL, libX11, libXrandr, libXinerama, libXcursor,
|
||||||
libxkbcommon, libXi, libXext, wayland-protocols, wayland,
|
libxkbcommon, libXi, libXext, wayland-protocols, wayland,
|
||||||
|
installShellFiles,
|
||||||
which, dbus,
|
which, dbus,
|
||||||
Cocoa,
|
Cocoa,
|
||||||
CoreGraphics,
|
CoreGraphics,
|
||||||
@ -53,6 +54,7 @@ buildPythonApplication rec {
|
|||||||
] ++ stdenv.lib.optionals stdenv.isDarwin [
|
] ++ stdenv.lib.optionals stdenv.isDarwin [
|
||||||
imagemagick
|
imagemagick
|
||||||
libicns # For the png2icns tool.
|
libicns # For the png2icns tool.
|
||||||
|
installShellFiles
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = stdenv.lib.optional stdenv.isLinux libGL;
|
propagatedBuildInputs = stdenv.lib.optional stdenv.isLinux libGL;
|
||||||
@ -78,6 +80,7 @@ buildPythonApplication rec {
|
|||||||
|
|
||||||
buildPhase = if stdenv.isDarwin then ''
|
buildPhase = if stdenv.isDarwin then ''
|
||||||
${python.interpreter} setup.py kitty.app --update-check-interval=0
|
${python.interpreter} setup.py kitty.app --update-check-interval=0
|
||||||
|
make man
|
||||||
'' else ''
|
'' else ''
|
||||||
${python.interpreter} setup.py linux-package --update-check-interval=0
|
${python.interpreter} setup.py linux-package --update-check-interval=0
|
||||||
'';
|
'';
|
||||||
@ -90,6 +93,8 @@ buildPythonApplication rec {
|
|||||||
ln -s ../Applications/kitty.app/Contents/MacOS/kitty "$out/bin/kitty"
|
ln -s ../Applications/kitty.app/Contents/MacOS/kitty "$out/bin/kitty"
|
||||||
mkdir "$out/Applications"
|
mkdir "$out/Applications"
|
||||||
cp -r kitty.app "$out/Applications/kitty.app"
|
cp -r kitty.app "$out/Applications/kitty.app"
|
||||||
|
|
||||||
|
installManPage 'docs/_build/man/kitty.1'
|
||||||
'' else ''
|
'' else ''
|
||||||
cp -r linux-package/{bin,share,lib} $out
|
cp -r linux-package/{bin,share,lib} $out
|
||||||
''}
|
''}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user