mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
7d270d53b9
Aria2 module settings
54 lines
1.4 KiB
Nix
54 lines
1.4 KiB
Nix
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
|
|
, gnutls, c-ares, libxml2, sqlite, zlib, libssh2
|
|
, cppunit, sphinx
|
|
, Security, nixosTests
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "aria2";
|
|
version = "1.37.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aria2";
|
|
repo = "aria2";
|
|
rev = "release-${version}";
|
|
sha256 = "sha256-xbiNSg/Z+CA0x0DQfMNsWdA+TATyX6dCeW2Nf3L3Kfs=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
nativeBuildInputs = [ pkg-config autoreconfHook sphinx ];
|
|
|
|
buildInputs = [ gnutls c-ares libxml2 sqlite zlib libssh2 ] ++
|
|
lib.optional stdenv.isDarwin Security;
|
|
|
|
outputs = [ "bin" "dev" "out" "doc" "man" ];
|
|
|
|
configureFlags = [
|
|
"--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
|
|
"--enable-libaria2"
|
|
"--with-bashcompletiondir=${placeholder "bin"}/share/bash-completion/completions"
|
|
];
|
|
|
|
prePatch = ''
|
|
patchShebangs --build doc/manual-src/en/mkapiref.py
|
|
'';
|
|
|
|
nativeCheckInputs = [ cppunit ];
|
|
doCheck = false; # needs the net
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
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";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ Br1ght0ne koral timhae ];
|
|
};
|
|
}
|