nix: make withAWS depend only on platform's aws-c-common availability (#481994)

This commit is contained in:
Philip Taron
2026-01-21 00:36:54 +00:00
committed by GitHub
2 changed files with 2 additions and 7 deletions
@@ -59,10 +59,7 @@ assert (hash == null) -> (src != null);
xz,
enableDocumentation ? stdenv.buildPlatform.canExecute stdenv.hostPlatform,
enableStatic ? stdenv.hostPlatform.isStatic,
withAWS ?
lib.meta.availableOn stdenv.hostPlatform aws-c-common
&& !enableStatic
&& (stdenv.hostPlatform.isLinux || stdenv.hostPlatform.isDarwin),
withAWS ? lib.meta.availableOn stdenv.hostPlatform aws-c-common,
aws-c-common,
aws-sdk-cpp,
withLibseccomp ? lib.meta.availableOn stdenv.hostPlatform libseccomp,
@@ -25,9 +25,7 @@
withAWS ?
# Default is this way because there have been issues building this dependency
stdenv.hostPlatform == stdenv.buildPlatform
&& (stdenv.isLinux || stdenv.isDarwin)
&& lib.meta.availableOn stdenv.hostPlatform aws-c-common,
lib.meta.availableOn stdenv.hostPlatform aws-c-common,
}:
mkMesonLibrary (finalAttrs: {