Skip to content

Commit

Permalink
Merge pull request #1294 from k3yss/work/keys/android-studio-optional
Browse files Browse the repository at this point in the history
feat: Make android-studio optional
  • Loading branch information
domenkozar authored Jun 24, 2024
2 parents 52b3a67 + eed50e0 commit 15e71cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/android/devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

{
android.enable = true;
android.android-studio.enable = false;
}
7 changes: 4 additions & 3 deletions src/modules/integrations/android.nix
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ in
'';
};

android-studio = lib.mkOption {
android-studio.enable = lib.mkEnableOption "the installation of Android Studio";

android-studio.package = lib.mkOption {
type = lib.types.package;
default = pkgs.android-studio;
defaultText = "pkgs.android-studio";
Expand Down Expand Up @@ -256,8 +258,7 @@ in
androidSdk
platformTools
androidEmulator
cfg.android-studio
] ++ (lib.optional cfg.flutter.enable cfg.flutter.package);
] ++ (lib.optional cfg.flutter.enable cfg.flutter.package) ++ (lib.optional cfg.android-studio.enable cfg.android-studio.package);

# Nested conditional for flutter
languages = lib.mkMerge [
Expand Down

0 comments on commit 15e71cb

Please sign in to comment.