Skip to content

Commit d9f9781

Browse files
committed
[DONTMERGE] sofiar example configuration
1 parent f5a4975 commit d9f9781

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

sofiar-twrp.nix

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# SPDX-FileCopyrightText: 2021 Samuel Dionne-Riel
2+
# SPDX-FileCopyrightText: 2021 Daniel Fullmer and robotnix contributors
3+
# SPDX-License-Identifier: MIT
4+
5+
#
6+
# Usage
7+
# =====
8+
#
9+
# ```
10+
# $ nix-build --arg configuration ./sofiar-twrp.nix -A config.build.twrp
11+
# ```
12+
#
13+
14+
{ config, pkgs, lib, ... }:
15+
16+
let
17+
inherit (pkgs)
18+
fetchFromGitHub
19+
;
20+
in
21+
{
22+
device = "sofiar";
23+
androidVersion = 10;
24+
flavor = "twrp";
25+
source.dirs = {
26+
"kernel/motorola/trinket" = {
27+
src = fetchFromGitHub {
28+
owner = "moto-sm6xxx";
29+
repo = "android_kernel_motorola_trinket";
30+
rev = "dc06278614038a6569650168dd1099f48fae1ebe";
31+
sha256 = "0pmls0nxlmb2jbfxngpkdw2i20rrxjq7an8qar8cidhf10sk4mvj";
32+
};
33+
};
34+
"device/motorola/sofiar" = {
35+
src = fetchFromGitHub {
36+
owner = "moto-sm6xxx";
37+
repo = "android_device_motorola_sofiar";
38+
rev = "ece39f82849b3e50b0a1ebbdc689265abeb7b6e0";
39+
sha256 = "1x0g63h4ar7zf6dspz339qri7hkxsgzb45h26xk45g48c1sv5wzm";
40+
};
41+
};
42+
};
43+
}

0 commit comments

Comments
 (0)