From ec6b1599901f58acce3784feccb690d46b72f29f Mon Sep 17 00:00:00 2001 From: figsoda Date: Fri, 18 Aug 2023 12:43:15 -0400 Subject: [PATCH] sshuttle: build and install man page --- pkgs/tools/security/sshuttle/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/security/sshuttle/default.nix b/pkgs/tools/security/sshuttle/default.nix index 6263a33f7062..7a8f7dfe6711 100644 --- a/pkgs/tools/security/sshuttle/default.nix +++ b/pkgs/tools/security/sshuttle/default.nix @@ -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 ])}" \ '';