!UUYziobKGGxpovWyAN:nixos.org

Robotnix

233 Members
Build Android (AOSP) using Nix | https://github.com/nix-community/robotnix70 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
24 Dec 2024
@countoren:matrix.orgcountoren *

Hi,
I was looking at your response and back to my code
I do have the latest commit

ddefce63fe8ec896c24325e1680959a893a581ff

with this flake


{
description = "Robotnix configuration for OnePlus 8 Pro";

inputs.robotnix.url = "github:danielfullmer/robotnix";

outputs = { self, robotnix }: {
robotnixConfigurations."oneplus8pro" = robotnix.lib.robotnixSystem ({ config, pkgs, ... }: {

# Required options

device = "instantnoodlep";  # Codename for OnePlus 8 Pro
flavor = "lineage-20.0";  # Change this to 'lineageos' if you want LineageOS, otherwise keep 'grapheneos' if supported

# Optional configurations

# buildDateTime = 1584398664; # Update if you want to push OTA updates for your custom changes

# If you have keys for signing, enable this

# signing.enable = true;

# signing.keyStorePath = "/var/secrets/android-keys";

# Enable ccache if you want faster subsequent builds

# ccache.enable = true;

apps.chromium.enable = false;
});

# Default package for building the image

defaultPackage.x86\_64-linux = self.robotnixConfigurations."oneplus8pro".img;


};
}

getting back


error: builder for '/nix/store/jgw8vkv0rg819c3m9d1a9dwl25xwfdnk-build=make-patched.drv' failed with exit code 1;
last 25 log lines:
\> Perhaps you used the wrong -p or --strip option?
\> The text leading up to this was:
\> --------------------------
\> |diff --git a/core/definitions.mk b/core/definitions.mk
\> |index c5fe76b606..5c8f85b4a4 100644
\> |--- a/core/definitions.mk
\> |+++ b/core/definitions.mk
\> --------------------------
\> File to patch:
\> Skip this patch? \[y\]
\> Skipping patch.
\> 4 out of 4 hunks ignored
\> can't find file to patch at input line 100
\> Perhaps you used the wrong -p or --strip option?
\> The text leading up to this was:
\> --------------------------
\> |diff --git a/tools/libhost/CopyFile.c b/tools/libhost/CopyFile.c
\> |index f9bda86fd1..44b36e4bdf 100644
\> |--- a/tools/libhost/CopyFile.c
\> |+++ b/tools/libhost/CopyFile.c
\> --------------------------
\> File to patch:
\> Skip this patch? \[y\]
\> Skipping patch.
\> 1 out of 1 hunk ignored
For full logs, run 'nix log /nix/store/jgw8vkv0rg819c3m9d1a9dwl25xwfdnk-build=make-patched.drv'.
22:27:54
@atemu12:matrix.orgAtemuWhat you did doesn't deactivate the chromium dependency though I belive, you need this: https://github.com/Atemu/robot-config/blob/d6c4357332d626b287e6711d622bb485a4db33ee/common.nix#L21-L2322:28:21
@countoren:matrix.orgcountoren

o i guess i was testing with lineage-20.0 because when i put lineageos I am getting

$ nix build
warning: Git tree '/home/p1n3/robotnix' is dirty
error:
       … while evaluating the attribute 'robotnixConfigurations.oneplus8pro.img'
         at /nix/store/cqfwznl56mky8vfsfz353hfh55qyn0qq-source/default.nix:91:24:
           90|     targetFiles unsignedTargetFiles signedTargetFiles
           91|     ota incrementalOta img factoryImg bootImg recoveryImg otaDir
             |                        ^
           92|     releaseScript generateKeysScript verifyKeysScript

       … while evaluating a branch condition
         at /nix/store/9fpv0kjq9a80isa1wkkvrdqsh9dpcn05-source/lib/lists.nix:57:9:
           56|       fold' = n:
           57|         if n == len
             |         ^
           58|         then nul

       … while evaluating the option `warnings':

       … while evaluating definitions from `/nix/store/cqfwznl56mky8vfsfz353hfh55qyn0qq-source/flavors/lineageos':

       … while evaluating the option `androidVersion':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: attribute '"lineage-21.0"' missing
       at /nix/store/cqfwznl56mky8vfsfz353hfh55qyn0qq-source/flavors/lineageos/default.nix:75:71:
           74|       defaultBranch = deviceMetadata.${config.device}.branch;
           75|     in mkIf (deviceMetadata ? ${config.device}) (mkDefault (lib.toInt lineageBranchToAndroidVersion.${defaultBranch}));
             |                                                                       ^
           76|   flavorVersion = removePrefix "lineage-" androidVersionToLineageBranch.${toString config.androidVersion};
       Did you mean lineage-20.0?
22:32:04
@countoren:matrix.orgcountorenthank you I added these lines too22:32:54
@atemu12:matrix.orgAtemuI have no idea how you'd get 21?22:33:19
@countoren:matrix.orgcountorenthat is directly a flake from the template22:34:35
@countoren:matrix.orgcountorenso it should have any modification22:35:06
@countoren:matrix.orgcountoren* so it should not have any modification22:35:15

Show newer messages


Back to Room ListRoom Version: 6