| 8 Sep 2021 |
danielrf | mkBefore will ensure that it applied this reverted patch before the microg.nix module applies its own patch | 00:01:40 |
danielrf | * mkBefore will ensure that it applies this reverted patch before the microg.nix module applies its own patch | 00:02:05 |
kranzes | Im trying to mimick your personal robotnix flake.nix in terms of adding the nixpkgs input but it does not seem to work | 00:10:49 |
kranzes | {
description = "A (not so) basic robotnix configuration";
inputs = {
robotnix.url = "github:Kranzes/robotnix-forklineageos";
inputs.nixpkgs.follows = "robotnix/nixpkgs";
device_xiaomi_miatoll = { url = "github:sairam1411/device_xiaomi_miatoll"; flake = false; };
device_xiaomi_sm6250-common = { url = "github:sairam1411/device_xiaomi_sm6250-common"; flake = false; };
vendor_xiaomi_miatoll = { url = "github:sairam1411/vendor_xiaomi_miatoll"; flake = false; };
vendor_xiaomi_sm6250-common = { url = "github:sairam1411/vendor_xiaomi_sm6250-common"; flake = false; };
kernel_xiaomi_sm6250 = { url = "github:sairam1411/kernel_xiaomi_sm6250"; flake = false; };
};
outputs = { self, robotnix, nixpkgs, ... }@inputs: {
robotnixConfigurations."miatoll" = robotnix.lib.robotnixSystem ({ config, pkgs, lib, ... }: {
device = "miatoll";
flavor = "lineageos";
androidVersion = 11;
signing.enable = true;
signing.keyStorePath = "/home/1TB-HDD/Android/keys";
apps.bromite.enable = false;
apps.chromium.enable = false;
webview = {
chromium = {
enable = false;
availableByDefault = false;
};
bromite = {
enable = true;
availableByDefault = true;
};
};
microg.enable = true;
# needed for robotnix's microg module to work
source.dirs."frameworks/base".patches = lib.mkBefore [
(pkgs.fetchPatch {
url = "https://github.com/ForkLineageOS/android_frameworks_base/commit/ee9742b6728f0ecb089d8783c0b8bee17debacfa.patch";
sha256 = lib.fakeHash;
revert = true;
})
];
source.dirs = {
"device/xiaomi/miatoll".src = inputs.device_xiaomi_miatoll;
"device/xiaomi/sm6250-common".src = inputs.device_xiaomi_sm6250-common;
"vendor/xiaomi/miatoll".src = inputs.vendor_xiaomi_miatoll;
"vendor/xiaomi/sm6250-common".src = inputs.vendor_xiaomi_sm6250-common;
"kernel/xiaomi/sm6250".src = inputs.kernel_xiaomi_sm6250;
};
});
defaultPackage.x86_64-linux = self.robotnixConfigurations."miatoll".ota;
};
}
| 00:11:01 |
kranzes |  Download image.png | 00:11:12 |
kranzes | I'm not very good with flakes, pretty new to them too | 00:11:28 |
kranzes | oh nvm | 00:11:49 |
kranzes | i did inputs.inputs.nixpkgs.follows | 00:12:08 |
kranzes | whoops | 00:12:09 |
danielrf | :) | 00:12:14 |
kranzes | it's still complaining that fetchpatch is missing | 00:12:28 |
kranzes | error: attribute 'fetchPatch' missing | 00:12:37 |
kranzes | its fetchpatch | 00:12:59 |
kranzes | i think lol | 00:13:02 |
danielrf | right | 00:13:13 |
kranzes | also adding the nixpkgs input there was uneeded | 00:13:37 |
kranzes | for my case at least | 00:13:44 |
kranzes |  Download image.png | 00:14:44 |
kranzes | hmmm | 00:14:45 |
kranzes | we need to force the patch | 00:14:59 |
kranzes | i think? | 00:15:01 |
kranzes | because its doing a patch ontop another patch | 00:15:09 |
kranzes | How would that work? | 00:15:20 |
kranzes | It's expecting interactive user input | 00:17:29 |
kranzes | but we dont have that through nix build | 00:17:42 |
danielrf | Yeah one of the patches just isn't applying cleanly. | 00:18:01 |
danielrf | If you disable microg.enable does it at least apply? | 00:18:24 |
kranzes | Nope | 00:18:52 |
kranzes | hmm weird | 00:18:54 |
kranzes |  Download image.png | 00:19:04 |