aria2: Fix ssl support and switch back to sourceforge

Using sourceforge gives release binaries which don't require us to
regenerate all of the autotools scripts. This removes the need for
dependencies like cppunit and libgcrypt and autoreconfHook.

cc @geerds

+8 -10
+8 -10
pkgs/tools/networking/aria2/default.nix
··· 1 - { stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, cppunit, libgcrypt 2 - , c-ares, libxml2, sqlite, zlib }: 1 + { stdenv, fetchurl, pkgconfig, autoreconfHook 2 + , openssl, c-ares, libxml2, sqlite, zlib, libssh2 3 + }: 3 4 4 5 stdenv.mkDerivation rec { 5 6 name = "aria2-${version}"; 6 7 version = "1.19.0"; 7 8 8 - src = fetchFromGitHub { 9 - owner = "tatsuhiro-t"; 10 - repo = "aria2"; 11 - rev = "release-${version}"; 12 - sha256 = "1k4b8jfg4wjsvybb7hysplp6h831allhiqdy9jwsyy0m0zmgk00a"; 9 + src = fetchurl { 10 + url = "mirror://sourceforge/aria2/${name}.tar.xz"; 11 + sha256 = "0xm4fmap9gp2pz6z01mnnpmazw6pnhzs8qc58181m5ai4gy5ksp2"; 13 12 }; 14 13 15 - buildInputs = [ 16 - pkgconfig autoreconfHook cppunit libgcrypt c-ares libxml2 sqlite zlib 17 - ]; 14 + nativeBuildInputs = [ pkgconfig ]; 15 + buildInputs = [ openssl c-ares libxml2 sqlite zlib libssh2 ]; 18 16 19 17 configureFlags = [ "--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt" ]; 20 18