mkosi: add man page

This commit is contained in:
Paul Meyer 2023-11-16 10:19:45 +01:00
parent 28a41e21cb
commit 3f5b64f3c7

View File

@ -5,6 +5,7 @@
, python3
, bubblewrap
, systemd
, pandoc
# Python packages
, setuptools
@ -63,6 +64,8 @@ buildPythonApplication rec {
version = "19";
format = "pyproject";
outputs = [ "out" "man" ];
src = fetchFromGitHub {
owner = "systemd";
repo = "mkosi";
@ -84,6 +87,7 @@ buildPythonApplication rec {
'';
nativeBuildInputs = [
pandoc
setuptools
setuptools-scm
wheel
@ -96,10 +100,19 @@ buildPythonApplication rec {
qemu
];
postBuild = ''
./tools/make-man-page.sh
'';
checkInputs = [
pytestCheckHook
];
postInstall = ''
mkdir -p $out/share/man/man1
mv mkosi/resources/mkosi.1 $out/share/man/man1/
'';
makeWrapperArgs = [
"--set MKOSI_INTERPRETER ${python3pefile}/bin/python3"
"--prefix PYTHONPATH : \"$PYTHONPATH\""