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