1 { lib, stdenv, fetchFromGitHub, 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.hostPlatform.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 aria2 = nixosTests.aria2;
46 homepage = "https://aria2.github.io";
47 changelog = "https://github.com/aria2/aria2/releases/tag/release-${version}";
48 description = "Lightweight, multi-protocol, multi-source, command-line download utility";
49 mainProgram = "aria2c";
50 license = licenses.gpl2Plus;
51 platforms = platforms.unix;
52 maintainers = with maintainers; [ Br1ght0ne koral timhae ];