From d9f97815232468db16869f35460fcd1edbeb15dd Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Sat, 4 Dec 2021 01:44:37 -0500 Subject: [PATCH] [DONTMERGE] sofiar example configuration --- sofiar-twrp.nix | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 sofiar-twrp.nix diff --git a/sofiar-twrp.nix b/sofiar-twrp.nix new file mode 100644 index 00000000..f7ade8a8 --- /dev/null +++ b/sofiar-twrp.nix @@ -0,0 +1,43 @@ +# SPDX-FileCopyrightText: 2021 Samuel Dionne-Riel +# SPDX-FileCopyrightText: 2021 Daniel Fullmer and robotnix contributors +# SPDX-License-Identifier: MIT + +# +# Usage +# ===== +# +# ``` +# $ nix-build --arg configuration ./sofiar-twrp.nix -A config.build.twrp +# ``` +# + +{ config, pkgs, lib, ... }: + +let + inherit (pkgs) + fetchFromGitHub + ; +in +{ + device = "sofiar"; + androidVersion = 10; + flavor = "twrp"; + source.dirs = { + "kernel/motorola/trinket" = { + src = fetchFromGitHub { + owner = "moto-sm6xxx"; + repo = "android_kernel_motorola_trinket"; + rev = "dc06278614038a6569650168dd1099f48fae1ebe"; + sha256 = "0pmls0nxlmb2jbfxngpkdw2i20rrxjq7an8qar8cidhf10sk4mvj"; + }; + }; + "device/motorola/sofiar" = { + src = fetchFromGitHub { + owner = "moto-sm6xxx"; + repo = "android_device_motorola_sofiar"; + rev = "ece39f82849b3e50b0a1ebbdc689265abeb7b6e0"; + sha256 = "1x0g63h4ar7zf6dspz339qri7hkxsgzb45h26xk45g48c1sv5wzm"; + }; + }; + }; +}