fix: remove optionalAttrs for Android SDK env vars

The assert in compose.nix was removed in master, so ANDROID_SDK_ROOT
and ANDROID_NDK_HOME can be set unconditionally again.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Prem Chaitanya Prathi 2026-02-10 11:19:18 +05:30
parent 71a5b0dd3e
commit d17039da81
No known key found for this signature in database

View File

@ -104,13 +104,13 @@ in stdenv.mkDerivation {
cp library/libwaku.h $out/include/
'';
ANDROID_SDK_ROOT = "${pkgs.androidPkgs.sdk}";
ANDROID_NDK_HOME = "${pkgs.androidPkgs.ndk}";
meta = with pkgs.lib; {
description = "NWaku derivation to build libwaku for mobile targets using Android NDK and Rust.";
homepage = "https://github.com/status-im/nwaku";
license = licenses.mit;
platforms = stableSystems;
};
} // lib.optionalAttrs (abidir != null) {
ANDROID_SDK_ROOT = "${pkgs.androidPkgs.sdk}";
ANDROID_NDK_HOME = "${pkgs.androidPkgs.ndk}";
})
}