aws-c-common: Mark big-endian platforms as unsupported (#425407)

This commit is contained in:
Robert Hensing 2025-07-15 18:06:50 +02:00 committed by GitHub
commit 14defdddac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 2 deletions

View File

@ -56,6 +56,8 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/awslabs/aws-c-common"; homepage = "https://github.com/awslabs/aws-c-common";
license = licenses.asl20; license = licenses.asl20;
platforms = platforms.unix; platforms = platforms.unix;
# https://github.com/awslabs/aws-c-common/issues/1175
badPlatforms = platforms.bigEndian;
maintainers = with maintainers; [ maintainers = with maintainers; [
orivej orivej
r-burns r-burns

View File

@ -72,7 +72,11 @@ in
xz, xz,
enableDocumentation ? stdenv.buildPlatform.canExecute stdenv.hostPlatform, enableDocumentation ? stdenv.buildPlatform.canExecute stdenv.hostPlatform,
enableStatic ? stdenv.hostPlatform.isStatic, 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, aws-sdk-cpp,
withLibseccomp ? lib.meta.availableOn stdenv.hostPlatform libseccomp, withLibseccomp ? lib.meta.availableOn stdenv.hostPlatform libseccomp,
libseccomp, libseccomp,

View File

@ -63,7 +63,11 @@ assert (hash == null) -> (src != null);
xz, xz,
enableDocumentation ? stdenv.buildPlatform.canExecute stdenv.hostPlatform, enableDocumentation ? stdenv.buildPlatform.canExecute stdenv.hostPlatform,
enableStatic ? stdenv.hostPlatform.isStatic, 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, aws-sdk-cpp,
withLibseccomp ? lib.meta.availableOn stdenv.hostPlatform libseccomp, withLibseccomp ? lib.meta.availableOn stdenv.hostPlatform libseccomp,
libseccomp, libseccomp,