2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchpatch, fetchFromGitHub, pkg-config, autoreconfHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, openssl, c-ares, libxml2, sqlite, zlib, libssh2
|
|
|
|
, cppunit, sphinx
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "aria2";
|
2021-08-22 07:53:02 +00:00
|
|
|
version = "1.36.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aria2";
|
|
|
|
repo = "aria2";
|
|
|
|
rev = "release-${version}";
|
2021-08-22 07:53:02 +00:00
|
|
|
sha256 = "sha256-ErjFfSJDIgZq0qy0Zn5uZ9bZS2AtJq4FuBVuUuQgPTI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
strictDeps = true;
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook sphinx ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ openssl c-ares libxml2 sqlite zlib libssh2 ] ++
|
2021-01-15 22:18:51 +00:00
|
|
|
lib.optional stdenv.isDarwin Security;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
outputs = [ "bin" "dev" "out" "doc" "man" ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
|
|
|
|
"--enable-libaria2"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
prePatch = ''
|
2022-01-13 20:06:32 +00:00
|
|
|
patchShebangs --build doc/manual-src/en/mkapiref.py
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ cppunit ];
|
|
|
|
doCheck = false; # needs the net
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://aria2.github.io";
|
|
|
|
description = "A lightweight, multi-protocol, multi-source, command-line download utility";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
2020-11-19 00:13:47 +00:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne koral ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|