2024-01-22 18:47:25 +01:00
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
let
|
|
|
|
sources = import ../npins;
|
|
|
|
|
|
|
|
linux_x13s_pkg =
|
2024-02-20 14:43:19 +01:00
|
|
|
{ version, buildLinux, ... }@args:
|
2024-01-22 18:47:25 +01:00
|
|
|
buildLinux (
|
|
|
|
args
|
|
|
|
// {
|
2024-02-20 14:43:19 +01:00
|
|
|
modDirVersion = version;
|
2024-01-22 18:47:25 +01:00
|
|
|
|
2024-02-20 14:43:19 +01:00
|
|
|
kernelPatches = (args.kernelPatches or [ ]) ++ [ ];
|
2024-01-22 18:47:25 +01:00
|
|
|
extraMeta.branch = lib.versions.majorMinor version;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
in
|
2024-07-31 04:25:13 +02:00
|
|
|
{
|
2024-05-30 17:33:49 +02:00
|
|
|
linux_jhovold = pkgs.callPackage linux_x13s_pkg {
|
2024-02-20 14:43:19 +01:00
|
|
|
src = sources.linux-jhovold;
|
2024-07-29 20:58:57 +02:00
|
|
|
version = "6.11.0-rc1";
|
2024-02-20 14:43:19 +01:00
|
|
|
defconfig = "johan_defconfig";
|
|
|
|
};
|
|
|
|
|
2024-07-31 04:25:13 +02:00
|
|
|
graphics-firmware =
|
|
|
|
let
|
|
|
|
gpu-src = pkgs.fetchurl {
|
|
|
|
url = "https://download.lenovo.com/pccbbs/mobiles/n3hdr20w.exe";
|
|
|
|
hash = "sha256-Jwyl9uKOnjpwfHd+VaGHjYs9x8cUuRdFCERuXqaJwEY=";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
pkgs.runCommand "graphics-firmware" { } ''
|
|
|
|
mkdir -vp "$out/lib/firmware/qcom/sc8280xp/LENOVO/21BX"
|
|
|
|
${lib.getExe pkgs.innoextract} ${gpu-src}
|
|
|
|
cp -v code\$GetExtractPath\$/*/*.mbn "$out/lib/firmware/qcom/sc8280xp/LENOVO/21BX/"
|
|
|
|
'';
|
2024-01-22 18:47:25 +01:00
|
|
|
}
|