From c8dd7d49e76845689a4d20109dfb2e70167aad78 Mon Sep 17 00:00:00 2001 From: Albert Safin Date: Sun, 31 Mar 2019 15:51:17 +0000 Subject: [PATCH] aria2: Add sphinx build dependency to generate man pages --- pkgs/tools/networking/aria2/default.nix | 8 ++++++-- pkgs/top-level/all-packages.nix | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/aria2/default.nix b/pkgs/tools/networking/aria2/default.nix index 2cf73532897..8d9ec928811 100644 --- a/pkgs/tools/networking/aria2/default.nix +++ b/pkgs/tools/networking/aria2/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchpatch, fetchFromGitHub, pkgconfig, autoreconfHook , openssl, c-ares, libxml2, sqlite, zlib, libssh2 -, cppunit +, cppunit, sphinx , Security }: @@ -23,13 +23,17 @@ stdenv.mkDerivation rec { }) ]; - nativeBuildInputs = [ pkgconfig autoreconfHook ]; + nativeBuildInputs = [ pkgconfig autoreconfHook sphinx ]; buildInputs = [ openssl c-ares libxml2 sqlite zlib libssh2 ] ++ stdenv.lib.optional stdenv.isDarwin Security; configureFlags = [ "--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt" ]; + prePatch = '' + patchShebangs doc/manual-src/en/mkapiref.py + ''; + checkInputs = [ cppunit ]; doCheck = false; # needs the net diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6789c250775..5e9dea0cbf0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -858,6 +858,7 @@ in aria2 = callPackage ../tools/networking/aria2 { inherit (darwin.apple_sdk.frameworks) Security; + inherit (pythonPackages) sphinx; }; aria = aria2;