forked from nix-community/robotnix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomponents.nix
More file actions
24 lines (20 loc) · 750 Bytes
/
Copy pathcomponents.nix
File metadata and controls
24 lines (20 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# SPDX-FileCopyrightText: 2021 Daniel Fullmer
# SPDX-License-Identifier: MIT
{
pkgs ? import ./pkgs { },
}:
# Easier entrypoint to build android components individually
# The components.json list is just used as a convenient list of components.
# To see all components and what they install, refer to module-info.json (build with config.build.moduleInfo)
let
lib = pkgs.lib;
robotnixBuild = import ./default.nix {
configuration = {
device = "arm64";
flavor = "vanilla";
};
};
# Created using jq 'with_entries(select(.value.installed | length > 0)) | keys' module-info.json
componentNames = lib.importJSON ./components.json;
in
lib.genAttrs componentNames (name: robotnixBuild.config.build.mkAndroidComponent name)