kustomize-sops: rename exec plugin to ksops (#175539)
[NixPkgs.git] / pkgs / tools / networking / aria2 / default.nix
blobe3c4210857e3c4631be6856a6591cac9ac0d33b5
1 { lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
2 , gnutls, c-ares, libxml2, sqlite, zlib, libssh2
3 , cppunit, sphinx
4 , Security, nixosTests
5 }:
7 stdenv.mkDerivation rec {
8   pname = "aria2";
9   version = "1.37.0";
11   src = fetchFromGitHub {
12     owner = "aria2";
13     repo = "aria2";
14     rev = "release-${version}";
15     sha256 = "sha256-xbiNSg/Z+CA0x0DQfMNsWdA+TATyX6dCeW2Nf3L3Kfs=";
16   };
18   strictDeps = true;
19   nativeBuildInputs = [ pkg-config autoreconfHook sphinx ];
21   buildInputs = [ gnutls c-ares libxml2 sqlite zlib libssh2 ] ++
22     lib.optional stdenv.hostPlatform.isDarwin Security;
24   outputs = [ "bin" "dev" "out" "doc" "man" ];
26   configureFlags = [
27     "--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
28     "--enable-libaria2"
29     "--with-bashcompletiondir=${placeholder "bin"}/share/bash-completion/completions"
30   ];
32   prePatch = ''
33     patchShebangs --build doc/manual-src/en/mkapiref.py
34   '';
36   nativeCheckInputs = [ cppunit ];
37   doCheck = false; # needs the net
39   enableParallelBuilding = true;
41   passthru.tests = {
42     aria2 = nixosTests.aria2;
43   };
45   meta = with lib; {
46     homepage = "https://aria2.github.io";
47     changelog = "https://github.com/aria2/aria2/releases/tag/release-${version}";
48     description = "Lightweight, multi-protocol, multi-source, command-line download utility";
49     mainProgram = "aria2c";
50     license = licenses.gpl2Plus;
51     platforms = platforms.unix;
52     maintainers = with maintainers; [ Br1ght0ne koral timhae ];
53   };