dotfiles/overlays/linux/clara-hd.nix

47 lines
994 B
Nix
Raw Normal View History

{
buildLinux,
fetchFromGitHub,
lib,
symlinkJoin,
lzop,
linux-firmware,
epdc-fw,
...
} @ args:
(buildLinux (args
// {
version = "6.9.0-drm-kobo";
modDirVersion = "6.9.0";
src = fetchFromGitHub {
owner = "akemnade";
repo = "linux";
rev = "4b0c49001732b93f6787c44e090b8e8f72e6fe6a";
hash = "sha256-rCiznEHDqrOW+CEI1I9HdHNSsVYCb7iJGE+7PKJ8H6A=";
};
defconfig = "kobo_defconfig";
structuredExtraConfig = with lib.kernel; {
EXTRA_FIRMWARE = freeform "imx/sdma/sdma-imx6q.bin imx/epdc/epdc.fw";
EXTRA_FIRMWARE_DIR = freeform ((symlinkJoin {
name = "embedded-extra-firmware";
paths = [
linux-firmware
epdc-fw
];
})
+ "/lib/firmware");
# RTW_SDIO_PM_KEEP_POWER = no;
# RTW_DEBUG = no;
};
extraMeta.branch = "drm-merged-6.9";
}))
.overrideAttrs (old: {
nativeBuildInputs =
old.nativeBuildInputs
++ [
lzop
];
})