mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
33 lines
944 B
Nix
33 lines
944 B
Nix
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook
|
|
, openssl, c-ares, libxml2, sqlite, zlib, libssh2
|
|
, Security
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "aria2-${version}";
|
|
version = "1.29.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aria2";
|
|
repo = "aria2";
|
|
rev = "release-${version}";
|
|
sha256 = "1ivxz2ld4cl9z29kdicban9dir6s0si2jqn4g11gz587x7pagbim";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
|
|
|
buildInputs = [ openssl c-ares libxml2 sqlite zlib libssh2 ] ++
|
|
stdenv.lib.optional stdenv.isDarwin Security;
|
|
|
|
configureFlags = [ "--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://aria2.github.io;
|
|
description = "A lightweight, multi-protocol, multi-source, command-line download utility";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ koral jgeerds ];
|
|
};
|
|
}
|