mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
29 lines
923 B
Nix
29 lines
923 B
Nix
{ stdenv, fetchurl, pkgconfig, autoreconfHook
|
|
, openssl, c-ares, libxml2, sqlite, zlib, libssh2
|
|
, Security
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "aria2-${version}";
|
|
version = "1.20.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/tatsuhiro-t/aria2/releases/download/release-${version}/${name}.tar.xz";
|
|
sha256 = "1l4gzz3yr0cl6a9xdy7843c5sb7afyq0i80wi2hasfpfdx5k95mz";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ openssl c-ares libxml2 sqlite zlib libssh2 ] ++
|
|
stdenv.lib.optional stdenv.isDarwin Security;
|
|
|
|
configureFlags = [ "--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/tatsuhiro-t/aria2;
|
|
description = "A lightweight, multi-protocol, multi-source, command-line download utility";
|
|
maintainers = with maintainers; [ koral jgeerds ];
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|