!UUYziobKGGxpovWyAN:nixos.org

Robotnix

268 Members
Build Android (AOSP) using Nix | https://github.com/danielfullmer/robotnix85 Servers

Load older messages


SenderMessageTime
7 Sep 2021
@kranzes:matrix.orgkranzesthere are two options for me, one to use git revert to revert that commit23:55:05
@kranzes:matrix.orgkranzes * there are three options for me, one to use git revert to revert that commit23:55:14
@danielrf:matrix.orgdanielrfDoes forklineageos already provide the MicroG apk as well as the patch?23:55:22
@kranzes:matrix.orgkranzessecond, remove some of the patches that microg through robotnix does23:55:41
@kranzes:matrix.orgkranzesthird to patch frameworks_base from forklineageos through robotnix23:56:09
@kranzes:matrix.orgkranzes
In reply to @danielrf:matrix.org
Does forklineageos already provide the MicroG apk as well as the patch?
no
23:56:11
@kranzes:matrix.orgkranzesit just has that spoofing thing23:56:11
@kranzes:matrix.orgkranzeswhat i used to do is fork forklineageos's base frameworks23:56:53
@kranzes:matrix.orgkranzesthen run git revert on it23:57:00
@kranzes:matrix.orgkranzesbut thats a bit of a hass;e23:57:03
@kranzes:matrix.orgkranzes * but thats a bit of a hassle23:57:04
@kranzes:matrix.orgkranzes
In reply to @kranzes:matrix.org
third to patch frameworks_base from forklineageos through robotnix
this i think maybe makes the most sense
23:57:48
@kranzes:matrix.orgkranzesbut i dont know how to write patches23:57:53
@danielrf:matrix.orgdanielrf Do you know about the revert option in pkgs.fetchpatch? 23:58:29
@kranzes:matrix.orgkranzesno23:58:37
@kranzes:matrix.orgkranzes🤔23:58:56
@danielrf:matrix.orgdanielrfWell it does what it sounds like. I sometimes use it to revert commits that upstream provides that we don't want23:59:15
@kranzes:matrix.orgkranzes
In reply to @danielrf:matrix.org
Well it does what it sounds like. I sometimes use it to revert commits that upstream provides that we don't want
that is exactly what i am looking for
23:59:30
@kranzes:matrix.orgkranzescould you show me how to use it in the flake.nix?23:59:36
@danielrf:matrix.orgdanielrfe.g. https://github.com/danielfullmer/robotnix/blob/d9018fbaed2eadf81b85b6dd075a4994230e3b97/flavors/lineageos/default.nix#L10523:59:42
8 Sep 2021
@danielrf:matrix.orgdanielrf it would be something like: source.dirs."frameworks/base".patches = lib.mkBefore [ (pkgs.fetchPatch ....) ]; 00:00:29
@kranzes:matrix.orgkranzeswhat is that .patch file exactly00:00:43
@kranzes:matrix.orgkranzes * what is that .patch file exactly?00:00:50
@kranzes:matrix.orgkranzesalso why do we need mkBefore there?00:01:15
@danielrf:matrix.orgdanielrfThis URL: https://github.com/ForkLineageOS/android_frameworks_base/commit/ee9742b6728f0ecb089d8783c0b8bee17debacfa.patch00:01:21
@kranzes:matrix.orgkranzesOh i didnt know git has that00:01:38
@danielrf:matrix.orgdanielrfmkBefore will ensure that it applied this reverted patch before the microg.nix module applies its own patch00:01:40
@danielrf:matrix.orgdanielrf * mkBefore will ensure that it applies this reverted patch before the microg.nix module applies its own patch00:02:05
@kranzes:matrix.orgkranzesIm trying to mimick your personal robotnix flake.nix in terms of adding the nixpkgs input but it does not seem to work00:10:49
@kranzes:matrix.orgkranzes
{
  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

Show newer messages


Back to Room ListRoom Version: 6