2024-03-25 08:51:54 +00:00
|
|
|
{
|
|
|
|
description = "Build LineageOS for Redmi K60 Pro";
|
|
|
|
|
|
|
|
inputs.robotnix.url = "github:danielfullmer/robotnix";
|
|
|
|
|
|
|
|
outputs = inputs: {
|
|
|
|
packages.x86_64-linux.default = inputs.self.robotnixConfigurations."socrates".img;
|
|
|
|
|
|
|
|
robotnixConfigurations."socrates" = inputs.robotnix.lib.robotnixSystem ({pkgs, ...}: {
|
|
|
|
device = "socrates";
|
|
|
|
flavor = "lineageos";
|
2024-05-23 16:15:10 +00:00
|
|
|
androidVersion = 14;
|
2024-03-25 08:51:54 +00:00
|
|
|
|
|
|
|
apps.chromium.enable = false;
|
|
|
|
webview.chromium.enable = false;
|
|
|
|
|
|
|
|
ccache.enable = true;
|
|
|
|
|
|
|
|
source.dirs."device/xiaomi/socrates".src = pkgs.fetchFromGitHub {
|
2024-05-23 16:15:10 +00:00
|
|
|
owner = "danielml3";
|
2024-03-25 08:51:54 +00:00
|
|
|
repo = "android_device_xiaomi_socrates";
|
2024-05-23 16:15:10 +00:00
|
|
|
rev = "8b48a7a18b8db76d7122ca6e1b5bde8765d16665"; # lineage-21
|
|
|
|
hash = "sha256-pQIbxpZhaxc7nI8Pl8sjG3kmvD3ComFDowjcKb9eZRo=";
|
2024-03-25 08:51:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
source.dirs."device/xiaomi/socrates-kernel".src = pkgs.fetchFromGitHub {
|
2024-05-23 16:15:10 +00:00
|
|
|
owner = "danielml3";
|
|
|
|
repo = "android_device_xiaomi_socrates";
|
|
|
|
rev = "60cd3aebf59cdf96366e8e4a8a1e2887f7d4d063"; # lineage-21-kernel
|
|
|
|
hash = "sha256-i5QtxvApvGk24WeH6i6nC6jhS2jL2BolRUr/M02y6lc=";
|
2024-03-25 08:51:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
source.dirs."hardware/xiaomi".src = pkgs.fetchFromGitHub {
|
2024-05-23 16:15:10 +00:00
|
|
|
owner = "LineageOS";
|
2024-03-25 08:51:54 +00:00
|
|
|
repo = "android_hardware_xiaomi";
|
2024-05-23 16:15:10 +00:00
|
|
|
rev = "4453055456bb452830144d9526342b032289495e"; # lineage-21
|
|
|
|
hash = "sha256-kQoHGKsa5L+usIChTMm63P85N8ZGofcllE4Hybf7itA=";
|
2024-03-25 08:51:54 +00:00
|
|
|
};
|
|
|
|
|
2024-05-23 16:15:10 +00:00
|
|
|
# TODO:
|
2024-03-25 08:51:54 +00:00
|
|
|
source.dirs."vendor/xiaomi/socrates".src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "kmiit";
|
|
|
|
repo = "android_vendor_xiaomi_socrates";
|
2024-05-23 16:15:10 +00:00
|
|
|
rev = "";
|
|
|
|
hash = "";
|
2024-03-25 08:51:54 +00:00
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|