!UUYziobKGGxpovWyAN:nixos.org

Robotnix

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

Load older messages


SenderMessageTime
8 Sep 2021
@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
@kranzes:matrix.orgkranzesimage.png
Download image.png
00:11:12
@kranzes:matrix.orgkranzesI'm not very good with flakes, pretty new to them too00:11:28
@kranzes:matrix.orgkranzesoh nvm00:11:49
@kranzes:matrix.orgkranzesi did inputs.inputs.nixpkgs.follows00:12:08
@kranzes:matrix.orgkranzeswhoops00:12:09
@danielrf:matrix.orgdanielrf:)00:12:14
@kranzes:matrix.orgkranzesit's still complaining that fetchpatch is missing00:12:28
@kranzes:matrix.orgkranzeserror: attribute 'fetchPatch' missing00:12:37
@kranzes:matrix.orgkranzesits fetchpatch00:12:59
@kranzes:matrix.orgkranzesi think lol00:13:02
@danielrf:matrix.orgdanielrfright00:13:13
@kranzes:matrix.orgkranzesalso adding the nixpkgs input there was uneeded00:13:37
@kranzes:matrix.orgkranzesfor my case at least00:13:44
@kranzes:matrix.orgkranzesimage.png
Download image.png
00:14:44
@kranzes:matrix.orgkranzeshmmm00:14:45
@kranzes:matrix.orgkranzeswe need to force the patch00:14:59
@kranzes:matrix.orgkranzesi think?00:15:01
@kranzes:matrix.orgkranzesbecause its doing a patch ontop another patch00:15:09
@kranzes:matrix.orgkranzesHow would that work?00:15:20
@kranzes:matrix.orgkranzesIt's expecting interactive user input00:17:29
@kranzes:matrix.orgkranzesbut we dont have that through nix build00:17:42
@danielrf:matrix.orgdanielrfYeah one of the patches just isn't applying cleanly.00:18:01
@danielrf:matrix.orgdanielrfIf you disable microg.enable does it at least apply?00:18:24
@kranzes:matrix.orgkranzesNope00:18:52
@kranzes:matrix.orgkranzeshmm weird00:18:54
@kranzes:matrix.orgkranzesimage.png
Download image.png
00:19:04

There are no newer messages yet.


Back to Room ListRoom Version: 6