diff --git a/pkgs/tools/networking/aria2/default.nix b/pkgs/tools/networking/aria2/default.nix index 2cf735328974..8d9ec9288114 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 d66a2c778d66..a45ea62a05cc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -862,6 +862,7 @@ in aria2 = callPackage ../tools/networking/aria2 { inherit (darwin.apple_sdk.frameworks) Security; + inherit (pythonPackages) sphinx; }; aria = aria2;