mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
sshuttle: build and install man page
This commit is contained in:
parent
acc01be813
commit
ec6b159990
1 changed files with 14 additions and 1 deletions
|
@ -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 ])}" \
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue