@@ -30,7 +30,7 @@ let
3030 buildInputs = [ curl openssl sqlite xz bzip2 ]
3131 ++ lib.optional (stdenv.isLinux || stdenv.isDarwin) libsodium
3232 ++ lib.optionals is20 [ brotli ] # Since 1.12
33− ++ lib.optional (hostPlatform.isSeccomputable) libseccomp
33+ ++ lib.meta.enableIfAvailable libseccomp
3434 ++ lib.optional ((stdenv.isLinux || stdenv.isDarwin) && is20)
3535 (aws-sdk-cpp.override {
3636 apis = ["s3"];
@@ -60,7 +60,7 @@ let
6060 hostPlatform != buildPlatform && hostPlatform ? nix && hostPlatform.nix ? system
6161 ) ''--with-system=${hostPlatform.nix.system}''
6262 # RISC-V support in progress https://github.com/seccomp/libseccomp/pull/50
63− ++ lib.optional (!hostPlatform.isSeccomputable) "--disable-seccomp-sandboxing";
63+ ++ lib.optional (!libseccomp.meta.available) "--disable-seccomp-sandboxing";
6464
6565 makeFlags = "profiledir=$(out)/etc/profile.d";
6666