nix: Only enable AWS when aws-c-common is available on the platform
This commit is contained in:
parent
767976b43d
commit
c7801e49b1
@ -72,7 +72,11 @@ in
|
||||
xz,
|
||||
enableDocumentation ? stdenv.buildPlatform.canExecute stdenv.hostPlatform,
|
||||
enableStatic ? stdenv.hostPlatform.isStatic,
|
||||
withAWS ? !enableStatic && (stdenv.hostPlatform.isLinux || stdenv.hostPlatform.isDarwin),
|
||||
withAWS ?
|
||||
lib.meta.availableOn stdenv.hostPlatform aws-c-common
|
||||
&& !enableStatic
|
||||
&& (stdenv.hostPlatform.isLinux || stdenv.hostPlatform.isDarwin),
|
||||
aws-c-common,
|
||||
aws-sdk-cpp,
|
||||
withLibseccomp ? lib.meta.availableOn stdenv.hostPlatform libseccomp,
|
||||
libseccomp,
|
||||
|
@ -63,7 +63,11 @@ assert (hash == null) -> (src != null);
|
||||
xz,
|
||||
enableDocumentation ? stdenv.buildPlatform.canExecute stdenv.hostPlatform,
|
||||
enableStatic ? stdenv.hostPlatform.isStatic,
|
||||
withAWS ? !enableStatic && (stdenv.hostPlatform.isLinux || stdenv.hostPlatform.isDarwin),
|
||||
withAWS ?
|
||||
lib.meta.availableOn stdenv.hostPlatform aws-c-common
|
||||
&& !enableStatic
|
||||
&& (stdenv.hostPlatform.isLinux || stdenv.hostPlatform.isDarwin),
|
||||
aws-c-common,
|
||||
aws-sdk-cpp,
|
||||
withLibseccomp ? lib.meta.availableOn stdenv.hostPlatform libseccomp,
|
||||
libseccomp,
|
||||
|
Loading…
x
Reference in New Issue
Block a user