summary refs log tree commit diff
diff options
context:
space:
mode:
authorPascal Bach <pascal.bach@nextrem.ch>2020-05-03 21:59:17 +0200
committerPascal Bach <pascal.bach@nextrem.ch>2020-05-03 22:02:51 +0200
commit020d0bfe1aec36a170f31e1239493946fe216735 (patch)
tree8cee01d8b9232a9f78420c9142e5946ffa254261
parent20eff68d97e0c8924f0bd9f62ce131230632a034 (diff)
downloadnixpkgs-020d0bfe1aec36a170f31e1239493946fe216735.tar
nixpkgs-020d0bfe1aec36a170f31e1239493946fe216735.tar.gz
nixpkgs-020d0bfe1aec36a170f31e1239493946fe216735.tar.bz2
nixpkgs-020d0bfe1aec36a170f31e1239493946fe216735.tar.lz
nixpkgs-020d0bfe1aec36a170f31e1239493946fe216735.tar.xz
nixpkgs-020d0bfe1aec36a170f31e1239493946fe216735.tar.zst
nixpkgs-020d0bfe1aec36a170f31e1239493946fe216735.zip
aria2: add libaria2 support
This changes the derivation to be a multi output derivation
and at the same time builds the binary against the shared libaria2.
-rw-r--r--pkgs/tools/networking/aria2/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/tools/networking/aria2/default.nix b/pkgs/tools/networking/aria2/default.nix
index 6c596e77af8..5ede0db598c 100644
--- a/pkgs/tools/networking/aria2/default.nix
+++ b/pkgs/tools/networking/aria2/default.nix
@@ -20,7 +20,12 @@ stdenv.mkDerivation rec {
   buildInputs = [ openssl c-ares libxml2 sqlite zlib libssh2 ] ++
     stdenv.lib.optional stdenv.isDarwin Security;
 
-  configureFlags = [ "--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt" ];
+  outputs = [ "bin" "dev" "out" "doc" "man" ];
+
+  configureFlags = [
+    "--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
+    "--enable-libaria2"
+  ];
 
   prePatch = ''
     patchShebangs doc/manual-src/en/mkapiref.py