mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +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
|
, 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 ])}" \
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue