!UUYziobKGGxpovWyAN:nixos.org

Robotnix

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

Load older messages


SenderMessageTime
23 Dec 2024
@magic_rb:matrix.redalder.orgmagic_rb Huh that was abrupt holy shit 22:22:49
24 Dec 2024
@oak:universumi.fioak 🏳️‍🌈♥️I wonder what are the important things to take into account when packaging those prebuilt apks. Mainly first question that comes to mind is that do the signatures need to be changed or spoofed?22:17:24
@oak:universumi.fioak 🏳️‍🌈♥️* I wonder what are the important things to take into account when packaging those prebuilt apks. Mainly first question that comes to mind is do the signatures need to be changed or spoofed?22:17:39
@atemu12:matrix.orgatemu12Depends on whether you want to sign them with your key or keep the upstream key22:18:00
@atemu12:matrix.orgatemu12There's valid reasons for both22:18:42
@atemu12:matrix.orgatemu12You'd want to sign it with your key unless you want to be able to update it independently of the ROM22:19:23
@atemu12:matrix.orgatemu12(Without signing it yourself with your own key again.)22:19:36
@oak:universumi.fioak 🏳️‍🌈♥️https://github.com/nix-community/robotnix/blob/master/modules/apps/chromium.nix#L127-L130 I'm just looking at this22:21:12
@oak:universumi.fioak 🏳️‍🌈♥️If you don't provide a signing key, then it is changed to some "snake oil" key22:21:26
@atemu12:matrix.orgatemu12My understanding is that this snake oil signature is later replaced with the actual signature22:22:00
@atemu12:matrix.orgatemu12But, again, I never used signing22:22:10
@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:26:12
@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:26:49
@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:00
@atemu12:matrix.orgatemu12 Your flavour is still wrong; it needs to be just lineageos. I don't know how that even evals. 22:27:31
@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.orgatemu12What 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.orgatemu12I 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
@atemu12:matrix.orgatemu12 Please just set flavour = "lineageos"; and androidVersion = 13;. I have no idea about any flake templates 22:35:31
@atemu12:matrix.orgatemu12They're not maintained22:35:37
@atemu12:matrix.orgatemu12 * Please just set flavor = "lineageos"; and androidVersion = 13;. I have no idea about any flake templates 22:35:52
@countoren:matrix.orgcountorenit seems to start building now that i added the androidVersion22:37:00
@countoren:matrix.orgcountoren Thank you Atemu anyhow, really appreciate your help guys. 22:39:20
@atemu12:matrix.orgatemu12Please keep in mind that robotnix is not really ready for use right now22:39:57
@countoren:matrix.orgcountorenthat is fine I will dive in as much as needed when needed :)22:43:18

Show newer messages


Back to Room ListRoom Version: 6