1{ stdenv, fetchurl, pkgconfig, autoreconfHook
2, openssl, c-ares, libxml2, sqlite, zlib, libssh2
3}:
4
5stdenv.mkDerivation rec {
6 name = "aria2-${version}";
7 version = "1.19.0";
8
9 src = fetchurl {
10 url = "mirror://sourceforge/aria2/${name}.tar.xz";
11 sha256 = "0xm4fmap9gp2pz6z01mnnpmazw6pnhzs8qc58181m5ai4gy5ksp2";
12 };
13
14 nativeBuildInputs = [ pkgconfig ];
15 buildInputs = [ openssl c-ares libxml2 sqlite zlib libssh2 ];
16
17 configureFlags = [ "--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt" ];
18
19 meta = with stdenv.lib; {
20 homepage = https://github.com/tatsuhiro-t/aria2;
21 description = "A lightweight, multi-protocol, multi-source, command-line download utility";
22 maintainers = with maintainers; [ koral jgeerds ];
23 license = licenses.gpl2Plus;
24 platforms = platforms.linux;
25 };
26}