1 { lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config, autoreconfHook
2 , gnutls, c-ares, libxml2, sqlite, zlib, libssh2
7 stdenv.mkDerivation rec {
11 src = fetchFromGitHub {
14 rev = "release-${version}";
15 sha256 = "sha256-xbiNSg/Z+CA0x0DQfMNsWdA+TATyX6dCeW2Nf3L3Kfs=";
19 nativeBuildInputs = [ pkg-config autoreconfHook sphinx ];
21 buildInputs = [ gnutls c-ares libxml2 sqlite zlib libssh2 ] ++
22 lib.optional stdenv.isDarwin Security;
24 outputs = [ "bin" "dev" "out" "doc" "man" ];
27 "--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
29 "--with-bashcompletiondir=${placeholder "bin"}/share/bash-completion/completions"
33 patchShebangs --build doc/manual-src/en/mkapiref.py
36 nativeCheckInputs = [ cppunit ];
37 doCheck = false; # needs the net
39 enableParallelBuilding = true;
42 homepage = "https://aria2.github.io";
43 description = "A lightweight, multi-protocol, multi-source, command-line download utility";
44 mainProgram = "aria2c";
45 license = licenses.gpl2Plus;
46 platforms = platforms.unix;
47 maintainers = with maintainers; [ Br1ght0ne koral ];