Skip to content

Commit

Permalink
Merge pull request #16362 from womfoo/aria2
Browse files Browse the repository at this point in the history
aria2: 1.23.0 -> 1.24.0
  • Loading branch information
joachifm committed Jun 22, 2016
2 parents c9412ca + 28fc487 commit 1d98608
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions pkgs/tools/networking/aria2/default.nix
@@ -1,28 +1,37 @@
{ stdenv, fetchurl, pkgconfig, autoreconfHook
{ stdenv, fetchFromGitHub, fetchpatch, pkgconfig, autoreconfHook
, openssl, c-ares, libxml2, sqlite, zlib, libssh2
, Security
}:

stdenv.mkDerivation rec {
name = "aria2-${version}";
version = "1.23.0";
version = "1.24.0";

src = fetchurl {
url = "https://github.com/tatsuhiro-t/aria2/releases/download/release-${version}/${name}.tar.xz";
sha256 = "14qz7686zxnhbaqj6l1hqpkykhpygm74h2mzwhh13gqmcj38alaq";
src = fetchFromGitHub {
owner = "aria2";
repo = "aria2";
rev = "release-${version}";
sha256 = "0sb8s2rf2l0x7m8fx8kys7vad0lfw3k9071iai03kxplkdvg96n9";
};

nativeBuildInputs = [ pkgconfig ];
nativeBuildInputs = [ pkgconfig autoreconfHook ];

buildInputs = [ openssl c-ares libxml2 sqlite zlib libssh2 ] ++
stdenv.lib.optional stdenv.isDarwin Security;

patches = stdenv.lib.optionals stdenv.isDarwin [
(fetchpatch {
url = https://github.com/aria2/aria2/commit/1e59e357af626edc870b7f53c1ae8083658d0d1a.patch;
sha256 = "1xjj4ll1v6adl6vdkl84v0mh7ma6p469ph1wpvksxrq6qp8345qj";
})
];

configureFlags = [ "--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt" ];

enableParallelBuilding = true;

meta = with stdenv.lib; {
homepage = https://github.com/tatsuhiro-t/aria2;
homepage = https://aria2.github.io;
description = "A lightweight, multi-protocol, multi-source, command-line download utility";
maintainers = with maintainers; [ koral jgeerds ];
license = licenses.gpl2Plus;
Expand Down

0 comments on commit 1d98608

Please sign in to comment.