@@ -1,11 +1,12 @@
11{ lib, stdenv, fetchurl, fetchFromGitHub, fetchpatch, perl, curl, bzip2, sqlite, openssl ? null, xz
2−, pkgconfig, boehmgc, perlPackages, libsodium, aws-sdk-cpp, brotli, boost
2+, pkgconfig, boehmgc, perlPackages, libsodium, brotli, boost
33, autoreconfHook, autoconf-archive, bison, flex, libxml2, libxslt, docbook5, docbook_xsl_ns
44, busybox-sandbox-shell
55, storeDir ? "/nix/store"
66, stateDir ? "/nix/var"
77, confDir ? "/etc"
88, withLibseccomp ? libseccomp.meta.available, libseccomp
9+, withAWS ? stdenv.isLinux || stdenv.isDarwin, aws-sdk-cpp
910}:
1011
1112let
@@ -31,7 +32,7 @@ let
3132 ++ lib.optional (stdenv.isLinux || stdenv.isDarwin) libsodium
3233 ++ lib.optionals is20 [ brotli boost ]
3334 ++ lib.optional withLibseccomp libseccomp
34− ++ lib.optional ((stdenv.isLinux || stdenv.isDarwin) && is20)
35+ ++ lib.optional (withAWS && is20)
3536 ((aws-sdk-cpp.override {
3637 apis = ["s3" "transfer"];
3738 customMemoryManagement = false;
@@ -74,7 +75,7 @@ let
7475 stdenv.hostPlatform != stdenv.buildPlatform && stdenv.hostPlatform ? nix && stdenv.hostPlatform.nix ? system
7576 ) ''--with-system=${stdenv.hostPlatform.nix.system}''
7677 # RISC-V support in progress https://github.com/seccomp/libseccomp/pull/50
77− ++ lib.optional (!libseccomp.meta.available) "--disable-seccomp-sandboxing";
78+ ++ lib.optional (!withLibseccomp) "--disable-seccomp-sandboxing";
7879
7980 makeFlags = "profiledir=$(out)/etc/profile.d";
8081