From 62ce8c7309022124da4fbbff9a7bb46ef074ab17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 5 Mar 2021 03:15:00 +0100 Subject: [PATCH] httpie: fix cross compilation --- pkgs/tools/networking/httpie/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/httpie/default.nix b/pkgs/tools/networking/httpie/default.nix index a323087575b..a7ecabe8e62 100644 --- a/pkgs/tools/networking/httpie/default.nix +++ b/pkgs/tools/networking/httpie/default.nix @@ -17,6 +17,8 @@ python3Packages.buildPythonApplication rec { outputs = [ "out" "doc" "man" ]; + nativeBuildInputs = [ docutils ]; + propagatedBuildInputs = with python3Packages; [ pygments requests requests-toolbelt setuptools ]; checkInputs = with python3Packages; [ @@ -49,7 +51,7 @@ python3Packages.buildPythonApplication rec { sed -e 's/^|build|//g' -i README.rst toHtml() { - ${docutils}/bin/rst2html5 \ + rst2html5 \ --strip-elements-with-class=no-web \ --title=http \ --no-generator \ @@ -63,7 +65,7 @@ python3Packages.buildPythonApplication rec { toHtml CHANGELOG.rst $docdir/html/CHANGELOG.html toHtml CONTRIBUTING.rst $docdir/html/CONTRIBUTING.html - ${docutils}/bin/rst2man \ + rst2man \ --strip-elements-with-class=no-web \ --title=http \ --no-generator \