| 5 May 2023 |
atemu12 | You don't need to patch any repo.jsons | 15:47:47 |
atemu12 | Those are just for getting all the stuff the regular build requires in order | 15:48:06 |
matthewcroughan - nix.zone | Is it possible to compose with the existing module options? | 15:48:11 |
atemu12 | Just add the source.dir and patch the device file according to the guide | 15:48:30 |
matthewcroughan - nix.zone | OH | 15:48:40 |
matthewcroughan - nix.zone | You mean like source.dir."vendor/gapps" sort of thing? | 15:49:01 |
atemu12 | Yup | 15:52:43 |
matthewcroughan - nix.zone | That's actually astoundingly easy | 15:55:31 |
matthewcroughan - nix.zone | Any idea what the branches mean? They have sigma tau etc, I am not sure if this is the size of the package or the android support version | 15:57:12 |
matthewcroughan - nix.zone | I'm going to assume based on the commits (I can't find docs) that it's related to the android support version | 15:58:29 |
matthewcroughan - nix.zone | And that sigma is android 12 | 15:58:36 |
matthewcroughan - nix.zone | source.dirs."vendor/gapps".src = builtins.fetchGit {
rev = "d547c376983cc644b5a6b4e7ed1fd59984f5569c";
ref = "sigma";
url = "https://gitlab.com/MindTheGapps/vendor_gapps.git";
allRefs = true;
};
| 15:58:46 |
matthewcroughan - nix.zone | This would then be the total code needed to add gapps to the build process | 15:58:54 |
kranzes | is MindTheGapps the right one you want? | 16:09:15 |
kranzes | and Sigma is the right variant? | 16:09:19 |
matthewcroughan - nix.zone | I don't care what it is as long as it provides the google play services for Android 12 | 16:10:24 |
matthewcroughan - nix.zone | I won't know until I try it since I can't find documentation on what the branch names mean | 16:10:35 |
kranzes | It's how many google bloatware to include | 16:11:00 |
matthewcroughan - nix.zone | And I'm stuck at "fetching Git repository", because Nix builtin fetchers failing to resolve? | 16:11:05 |
kranzes | Is the builtin one needed? | 16:11:33 |
kranzes | I don't think so | 16:11:39 |
matthewcroughan - nix.zone | it's just nicer since then you don't need a sh256 | 16:11:49 |
kranzes | you don't need it at eval time | 16:14:01 |
matthewcroughan - nix.zone | pkgs.fetchgit also doesn't take ref arg | 16:14:16 |
matthewcroughan - nix.zone | meaning you can't specify the branch name in addition | 16:14:21 |
matthewcroughan - nix.zone | allRefs = true; also doesn't look like it works | 16:14:50 |
matthewcroughan - nix.zone | Now I have to fill in 5 sha256s | 16:15:17 |
matthewcroughan - nix.zone | Are you happy?
source.dirs."vendor/gapps".src = pkgs.fetchgit {
rev = "d547c376983cc644b5a6b4e7ed1fd59984f5569c";
url = "https://gitlab.com/MindTheGapps/vendor_gapps.git";
sha256 = "";
};
source.dirs."device/samsung/dreamlte".src = pkgs.fetchgit {
rev = "f885b96f68f7c9579134a316206e3a556a3f870a";
url = "https://github.com/8890q/android_device_samsung_dreamlte.git";
sha256 = "";
};
source.dirs."device/samsung/universal8895-common".src = pkgs.fetchgit {
rev = "267d670aac1f6b02161d3ff164f411827e4ee68c";
url = "https://github.com/8890q/android_device_samsung_universal8895-common.git";
sha256 = "sha256-1AfV/EZBJXKYUOGodOqOF0MQhGynGpsy3ATyylKSuiM=";
};
source.dirs."kernel/xiaomi/sdm710".src = pkgs.fetchgit {
rev = "d45ecc236a98c10f28d7a0cad5238379634366af";
url = "https://github.com/8890q/android_kernel_samsung_universal8895.git";
sha256 = "";
};
source.dirs."vendor/samsung".src = pkgs.fetchgit {
rev = "64dc02b8f0f12ca3abff2b2674a09c8e57559f7d";
url = "https://github.com/8890q/proprietary_vendor_samsung.git";
sha256 = "";
};
source.dirs."hardware/xiaomi".src = pkgs.fetchgit {
rev = "ee54c6737f5274e8af52de8c11544c97fdeef296";
url = "https://github.com/8890q/android_hardware_samsung.git";
sha256 = "";
};
| 16:15:36 |
matthewcroughan - nix.zone | I'm not sure why the bultin fetcher is having trouble with DNS whereas the derivation one isn't | 16:21:06 |
matthewcroughan - nix.zone | Ilan Joselevich (Kranzes): I'm using sigma because that's what the stackoverflow was using, and you think this works with Android 12? | 16:24:10 |