mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
mkosi: add man page
This commit is contained in:
parent
28a41e21cb
commit
3f5b64f3c7
@ -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\""
|
||||
|
Loading…
Reference in New Issue
Block a user