nix: fix conditional so brotli is used w/2.0 builds, needed for logs!

cc https://github.com/NixOS/nix/issues/1951
This commit is contained in:
Will Dietz 2018-03-05 17:23:47 -06:00
parent f5f71c08cd
commit 7dafa09ed9

@ -29,7 +29,7 @@ let
buildInputs = [ curl openssl sqlite xz bzip2 ]
++ lib.optional (stdenv.isLinux || stdenv.isDarwin) libsodium
++ lib.optionals fromGit [ brotli ] # Since 1.12
++ lib.optionals is20 [ brotli ] # Since 1.12
++ lib.optional (hostPlatform.isSeccomputable) libseccomp
++ lib.optional ((stdenv.isLinux || stdenv.isDarwin) && is20)
(aws-sdk-cpp.override {