sshuttle: build and install man page

This commit is contained in:
figsoda 2023-08-18 12:43:15 -04:00 committed by Bjørn Forsman
parent acc01be813
commit ec6b159990

View file

@ -2,7 +2,9 @@
, stdenv
, python3Packages
, fetchPypi
, installShellFiles
, makeWrapper
, sphinx
, coreutils
, iptables
, nettools
@ -26,11 +28,22 @@ python3Packages.buildPythonApplication rec {
--replace '--cov=sshuttle --cov-branch --cov-report=term-missing' ""
'';
nativeBuildInputs = [ makeWrapper python3Packages.setuptools-scm ];
nativeBuildInputs = [
installShellFiles
makeWrapper
python3Packages.setuptools-scm
sphinx
];
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
postBuild = ''
make man -C docs
'';
postInstall = ''
installManPage docs/_build/man/*
wrapProgram $out/bin/sshuttle \
--prefix PATH : "${lib.makeBinPath ([ coreutils openssh procps ] ++ lib.optionals stdenv.isLinux [ iptables nettools ])}" \
'';