From 767976b43db6fca7c68275f5240fd0f2bd23c5a4 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Tue, 15 Jul 2025 13:37:15 +0200 Subject: [PATCH 1/2] aws-c-common: Mark big-endian platforms as unsupported --- pkgs/by-name/aw/aws-c-common/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/aw/aws-c-common/package.nix b/pkgs/by-name/aw/aws-c-common/package.nix index 2c33c7f38b49..10f0884243b6 100644 --- a/pkgs/by-name/aw/aws-c-common/package.nix +++ b/pkgs/by-name/aw/aws-c-common/package.nix @@ -56,6 +56,8 @@ stdenv.mkDerivation rec { homepage = "https://github.com/awslabs/aws-c-common"; license = licenses.asl20; platforms = platforms.unix; + # https://github.com/awslabs/aws-c-common/issues/1175 + badPlatforms = platforms.bigEndian; maintainers = with maintainers; [ orivej r-burns From c7801e49b128a5b004a9363134c8b201a58ed2f5 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Tue, 15 Jul 2025 14:45:49 +0200 Subject: [PATCH 2/2] nix: Only enable AWS when aws-c-common is available on the platform --- pkgs/tools/package-management/nix/common-autoconf.nix | 6 +++++- pkgs/tools/package-management/nix/common-meson.nix | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/package-management/nix/common-autoconf.nix b/pkgs/tools/package-management/nix/common-autoconf.nix index 4ad05d61d01b..a6e758467596 100644 --- a/pkgs/tools/package-management/nix/common-autoconf.nix +++ b/pkgs/tools/package-management/nix/common-autoconf.nix @@ -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, diff --git a/pkgs/tools/package-management/nix/common-meson.nix b/pkgs/tools/package-management/nix/common-meson.nix index 1e2bb73aef41..50e5c9fd060d 100644 --- a/pkgs/tools/package-management/nix/common-meson.nix +++ b/pkgs/tools/package-management/nix/common-meson.nix @@ -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,