nixpkgs/pkgs/tools/networking/aria2/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.4 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
, gnutls, c-ares, libxml2, sqlite, zlib, libssh2
, cppunit, sphinx
2024-04-16 20:14:48 +03:00
, Security, nixosTests
}:
stdenv.mkDerivation rec {
pname = "aria2";
version = "1.37.0";
2016-06-20 16:38:03 +03:00
src = fetchFromGitHub {
owner = "aria2";
repo = "aria2";
rev = "release-${version}";
sha256 = "sha256-xbiNSg/Z+CA0x0DQfMNsWdA+TATyX6dCeW2Nf3L3Kfs=";
};
strictDeps = true;
2021-01-17 06:51:22 +03:00
nativeBuildInputs = [ pkg-config autoreconfHook sphinx ];
2016-05-30 23:56:26 +03:00
buildInputs = [ gnutls c-ares libxml2 sqlite zlib libssh2 ] ++
2021-01-15 12:19:50 +03:00
lib.optional stdenv.isDarwin Security;
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"
];
prePatch = ''
patchShebangs --build doc/manual-src/en/mkapiref.py
'';
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;
};
meta = with lib; {
homepage = "https://aria2.github.io";
description = "Lightweight, multi-protocol, multi-source, command-line download utility";
mainProgram = "aria2c";
2015-02-04 17:55:49 +03:00
license = licenses.gpl2Plus;
2016-05-30 23:56:26 +03:00
platforms = platforms.unix;
maintainers = with maintainers; [ Br1ght0ne koral timhae ];
};
}