!UUYziobKGGxpovWyAN:nixos.org

Robotnix

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

Load older messages


SenderMessageTime
26 Mar 2024
@eyjhb:eyjhb.dkeyJhb * I tried building aura, but that didn't work. 10:09:36
@eyjhb:eyjhb.dkeyJhb
In reply to @atemu12:matrix.org
The updater script should collect those as metadata and robotnix automatically adds them to the source.dirs
I tried running the updater script, to ensure that it was up-to-date etc. ./update_device_dirs.py --debug --branch lineage-20 fairphone_FP4
10:10:33
@atemu12:matrix.orgatemu12So I happen to also use the FP4; it's one of two devices I test for10:11:08
@atemu12:matrix.orgatemu12Master should work10:11:11
@eyjhb:eyjhb.dkeyJhbWhat10:11:20
@atemu12:matrix.orgatemu12What's your config?10:11:28
@eyjhb:eyjhb.dkeyJhb
10:11:41
@eyjhb:eyjhb.dkeyJhbCHrist10:11:44
@eyjhb:eyjhb.dkeyJhb
# SPDX-FileCopyrightText: 2020 Daniel Fullmer and robotnix contributors
# SPDX-License-Identifier: MIT

# This is an example configuration that I personally use for my device.
# Please read the manual instead of simply copying this file for your own use.

{ config, pkgs, lib, ... }:

let
  myDomain = "daniel.fullmer.me";
in
{
  # These are required options, but commented out here since I set it programmatically for my devices elsewhere
  device = "FP4";
  flavor = "lineageos"; # "vanilla" is another option

  # buildDateTime is set by default by the flavor, and is updated when those flavors have new releases.
  # If you make new changes to your build that you want to be pushed by the OTA updater, you should set this yourself.
  # buildDateTime = 1584398664; # Use `date "+%s"` to get the current time

  # signing.enable = true;
  # signing.keyStorePath = "/var/secrets/android-keys"; # A _string_ of the path for the key store.

  # Build with ccache
  ccache.enable = true;

  apps.fdroid.enable = true;
  apps.seedvault.enable = true;

  microg.enable = true;

  # disable this shit
  apps.chromium.enable = false;
  webview.chromium.enable = false;
  # webview.prebuilt.enable = true;

}

10:11:47
@atemu12:matrix.orgatemu12
In reply to @eyjhb:eyjhb.dk
I tried running the updater script, to ensure that it was up-to-date etc. ./update_device_dirs.py --debug --branch lineage-20 fairphone_FP4
IIRC you can't update a single device
10:12:03
@eyjhb:eyjhb.dkeyJhbBut I'm running the 226 patch. I'll test master as-is instead10:12:05
@atemu12:matrix.orgatemu12Not sure what happens with the extra arg 10:12:13
@atemu12:matrix.orgatemu12
In reply to @eyjhb:eyjhb.dk
CHrist
That looks rather similar to mine
10:12:35
@eyjhb:eyjhb.dkeyJhb
In reply to @atemu12:matrix.org
IIRC you can't update a single device
https://github.com/nix-community/robotnix/issues/58#issuecomment-716734518
10:12:53
@eyjhb:eyjhb.dkeyJhbIt seemed to work with just a single device10:13:00
@atemu12:matrix.orgatemu12Ah okay10:13:20
@eyjhb:eyjhb.dkeyJhb
diff --git a/flavors/lineageos/lineage-20.0/device-dirs.json b/flavors/lineageos/lineage-20.0/device-dirs.json
index a42de6d..41dc77b 100644
--- a/flavors/lineageos/lineage-20.0/device-dirs.json
+++ b/flavors/lineageos/lineage-20.0/device-dirs.json
@@ -235,17 +235,15 @@
     "url": "https://github.com/LineageOS/android_device_fairphone_FP3"
   },
   "device/fairphone/FP4": {
-    "date": "2023-09-11T19:24:45+03:00",
+    "date": "2023-11-05T12:39:57+02:00",
     "deepClone": false,
-    "deps": [
-      "kernel/fairphone/sm7225"
-    ],
+    "deps": [],
     "fetchLFS": false,
     "fetchSubmodules": false,
     "leaveDotGit": false,
-    "path": "/nix/store/i22q596i7d1qhbayd2b9xvkvkk6n9w31-android_device_fairphone_FP4",
-    "rev": "ddac87023d5744ae54a1b8477196ada5c6ba9399",
-    "sha256": "1d4ifnd90c77dci7n3apv7px036f39syfy5l9xryxg8y07bp428a",
+    "path": "/nix/store/whm1grkk7aqhhrirxi4cm2a3mx4cp7zp-android_device_fairphone_FP4",
+    "rev": "f0c0027b1a43907684f33ceaf59e0bfcdba52f04",
+    "sha256": "1s431g27k0p6h5x52f524q8lmikbvdbpnc7hqr835zqknhp6b32b",
     "url": "https://github.com/LineageOS/android_device_fairphone_FP4"
   },
   "device/fxtec/pro1": {

10:13:22
@atemu12:matrix.orgatemu12It's been a while since I touched that10:13:26
@atemu12:matrix.orgatemu12
In reply to @eyjhb:eyjhb.dk
diff --git a/flavors/lineageos/lineage-20.0/device-dirs.json b/flavors/lineageos/lineage-20.0/device-dirs.json
index a42de6d..41dc77b 100644
--- a/flavors/lineageos/lineage-20.0/device-dirs.json
+++ b/flavors/lineageos/lineage-20.0/device-dirs.json
@@ -235,17 +235,15 @@
     "url": "https://github.com/LineageOS/android_device_fairphone_FP3"
   },
   "device/fairphone/FP4": {
-    "date": "2023-09-11T19:24:45+03:00",
+    "date": "2023-11-05T12:39:57+02:00",
     "deepClone": false,
-    "deps": [
-      "kernel/fairphone/sm7225"
-    ],
+    "deps": [],
     "fetchLFS": false,
     "fetchSubmodules": false,
     "leaveDotGit": false,
-    "path": "/nix/store/i22q596i7d1qhbayd2b9xvkvkk6n9w31-android_device_fairphone_FP4",
-    "rev": "ddac87023d5744ae54a1b8477196ada5c6ba9399",
-    "sha256": "1d4ifnd90c77dci7n3apv7px036f39syfy5l9xryxg8y07bp428a",
+    "path": "/nix/store/whm1grkk7aqhhrirxi4cm2a3mx4cp7zp-android_device_fairphone_FP4",
+    "rev": "f0c0027b1a43907684f33ceaf59e0bfcdba52f04",
+    "sha256": "1s431g27k0p6h5x52f524q8lmikbvdbpnc7hqr835zqknhp6b32b",
     "url": "https://github.com/LineageOS/android_device_fairphone_FP4"
   },
   "device/fxtec/pro1": {

The updater done goof'd
10:13:47
@atemu12:matrix.orgatemu12It's not the most robust10:14:01
@atemu12:matrix.orgatemu12And by that I mean it's not robust at all10:14:11
@eyjhb:eyjhb.dkeyJhbI'm trying master branch, without any PRs with the config I posted10:14:24
@eyjhb:eyjhb.dkeyJhbWell.. That was quick.10:14:38
@eyjhb:eyjhb.dkeyJhb
10:14:46
@atemu12:matrix.orgatemu12I haven't tested that PR yet, especially the Nixpkgs update is hairy10:14:53
@eyjhb:eyjhb.dkeyJhb *
building '/nix/store/xsg8l18mxa01vhamq3mgpap6lyrd58ag-robotnix-etcfiles.drv'...
Generating snakeoil key for GsfProxy (will be replaced when signing target files)
** Note: You may use '--sec-param Medium' instead of '--bits 2048'
Generating a 2048 bit RSA private key...
Generating snakeoil key for GmsCore (will be replaced when signing target files)
** Note: You may use '--sec-param Medium' instead of '--bits 2048'
Generating a 2048 bit RSA private key...
Generating snakeoil key for FakeStore (will be replaced when signing target files)
** Note: You may use '--sec-param Medium' instead of '--bits 2048'
Generating a 2048 bit RSA private key...
Applying /nix/store/lbscckdn2qlkrqc5kz86xj9dvqr3myi7-microg-android12-permission.patch
patching file PermissionController/src/com/android/permissioncontroller/permission/utils/Utils.java
Hunk #2 succeeded at 342 with fuzz 2 (offset 60 lines).
com.android.vending-83700037.apk APK certificate digest matches 9bd06727e62796c0130eb6dab39b73157451582cbd138e86c468acc395d14165

trying https://f-droid.org/repo/org.fdroid.fdroid_1017050.apk
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
building '/nix/store/m6wbh2g0hb36d79ck2a1bhp7y6h48m0r-prebuilt_GsfProxy.drv'...
building '/nix/store/d5wqh3k62ac7ahz4rjfwjw7xb88qmd8c-prebuilt_FakeStore.drv'...
WARNING: APK was compiled against an older SDK API level (23) than used in OS (33)
WARNING: APK was compiled against an older SDK API level (29) than used in OS (33)
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
error: cannot download org.fdroid.fdroid_1017050.apk from any mirror
error: builder for '/nix/store/wamkrk8gg84j17rci4j0kv12kb82wkyb-org.fdroid.fdroid_1017050.apk.drv' failed with exit code 1;
       last 7 log lines:
       >
       > trying https://f-droid.org/repo/org.fdroid.fdroid_1017050.apk
       >   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
       >                                  Dload  Upload   Total   Spent    Left  Speed
       >   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
       > curl: (22) The requested URL returned error: 404
       > error: cannot download org.fdroid.fdroid_1017050.apk from any mirror
       For full logs, run 'nix log /nix/store/wamkrk8gg84j17rci4j0kv12kb82wkyb-org.fdroid.fdroid_1017050.apk.drv'.
error: 1 dependencies of derivation '/nix/store/nc9m7ghrgdrwnnc2y83gw661hz321qfs-prebuilt_F-Droid.drv' failed to build
error: 1 dependencies of derivation '/nix/store/gnp5avfpbgyfl6jjkx4q271a3ggmj8nk-unpack.sh.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vlq4yiz6vadj981ksy0cpfww57sjv6l0-robotnix-lineage_FP4-2023100409.drv' failed to build
error: 1 dependencies of derivation '/nix/store/fcc8d6zg9sx4ih5a5w2ccgdw434i1kcb-FP4-img-2023100409.zip.drv' failed to build
10:14:59
@atemu12:matrix.orgatemu12Yeah, that's a known issue10:15:14
@eyjhb:eyjhb.dkeyJhbDisabing fdroid and hoping for the best10:15:18
@atemu12:matrix.orgatemu12Change the URL to a mirror (and submit a PR please!) or download manually and add it to the store10:15:42
@atemu12:matrix.orgatemu12I haven't had time the past few weeks ;)10:15:59

Show newer messages


Back to Room ListRoom Version: 6