2024-05-25 17:04:25 +03:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
|
2023-07-06 15:04:49 +03:00
|
|
|
, gnutls, c-ares, libxml2, sqlite, zlib, libssh2
|
2019-03-31 18:51:17 +03:00
|
|
|
, cppunit, sphinx
|
2024-04-16 20:14:48 +03:00
|
|
|
, Security, nixosTests
|
2015-08-19 03:15:57 +03:00
|
|
|
}:
|
2010-05-20 15:11:24 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "aria2";
|
2023-11-15 17:50:34 +03:00
|
|
|
version = "1.37.0";
|
2010-05-20 15:11:24 +04:00
|
|
|
|
2016-06-20 16:38:03 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aria2";
|
|
|
|
repo = "aria2";
|
|
|
|
rev = "release-${version}";
|
2023-11-15 17:50:34 +03:00
|
|
|
sha256 = "sha256-xbiNSg/Z+CA0x0DQfMNsWdA+TATyX6dCeW2Nf3L3Kfs=";
|
2010-05-20 15:11:24 +04:00
|
|
|
};
|
|
|
|
|
2021-12-27 15:52:04 +03:00
|
|
|
strictDeps = true;
|
2021-01-17 06:51:22 +03:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook sphinx ];
|
2016-05-30 23:56:26 +03:00
|
|
|
|
2023-07-06 15:04:49 +03:00
|
|
|
buildInputs = [ gnutls c-ares libxml2 sqlite zlib libssh2 ] ++
|
2021-01-15 12:19:50 +03:00
|
|
|
lib.optional stdenv.isDarwin Security;
|
2015-02-18 19:51:02 +03:00
|
|
|
|
2020-05-03 22:59:17 +03:00
|
|
|
outputs = [ "bin" "dev" "out" "doc" "man" ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
|
|
|
|
"--enable-libaria2"
|
2022-05-18 07:20:00 +03:00
|
|
|
"--with-bashcompletiondir=${placeholder "bin"}/share/bash-completion/completions"
|
2020-05-03 22:59:17 +03:00
|
|
|
];
|
2010-05-20 15:11:24 +04:00
|
|
|
|
2019-03-31 18:51:17 +03:00
|
|
|
prePatch = ''
|
2021-12-27 15:52:04 +03:00
|
|
|
patchShebangs --build doc/manual-src/en/mkapiref.py
|
2019-03-31 18:51:17 +03:00
|
|
|
'';
|
|
|
|
|
2023-01-21 15:00:00 +03:00
|
|
|
nativeCheckInputs = [ cppunit ];
|
2018-08-09 00:36:41 +03:00
|
|
|
doCheck = false; # needs the net
|
|
|
|
|
2016-04-22 21:20:32 +03:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2024-04-16 20:14:48 +03:00
|
|
|
passthru.tests = {
|
|
|
|
aria2 = nixosTests.aria2;
|
|
|
|
};
|
|
|
|
|
2021-01-11 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://aria2.github.io";
|
2010-05-20 15:11:24 +04:00
|
|
|
description = "Lightweight, multi-protocol, multi-source, command-line download utility";
|
2022-09-18 18:43:00 +03:00
|
|
|
mainProgram = "aria2c";
|
2015-02-04 17:55:49 +03:00
|
|
|
license = licenses.gpl2Plus;
|
2016-05-30 23:56:26 +03:00
|
|
|
platforms = platforms.unix;
|
2024-04-11 21:52:16 +03:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne koral timhae ];
|
2010-05-20 15:11:24 +04:00
|
|
|
};
|
|
|
|
}
|