From 368ed5d96ef20485c235ca0a70d5076c8bd8dfb2 Mon Sep 17 00:00:00 2001 From: Marie Ramlow Date: Wed, 10 Sep 2025 19:01:34 +0200 Subject: [PATCH] lix: disable AWS if not available on the host platform --- pkgs/tools/package-management/lix/common-lix.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/package-management/lix/common-lix.nix b/pkgs/tools/package-management/lix/common-lix.nix index ccd481c460e8..e7970a45c146 100644 --- a/pkgs/tools/package-management/lix/common-lix.nix +++ b/pkgs/tools/package-management/lix/common-lix.nix @@ -78,7 +78,11 @@ assert lib.assertMsg ( enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, enableStatic ? stdenv.hostPlatform.isStatic, enableStrictLLVMChecks ? true, - 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, # FIXME support Darwin once https://github.com/NixOS/nixpkgs/pull/392918 lands withDtrace ?