2023-05-07 10:55:24 +00:00
|
|
|
{ callPackage
|
|
|
|
, kernel ? null
|
|
|
|
, stdenv
|
|
|
|
, linuxKernel
|
2023-03-29 12:13:21 +00:00
|
|
|
, removeLinuxDRM ? false
|
2023-07-30 08:20:40 +00:00
|
|
|
, fetchpatch
|
2023-05-07 10:55:24 +00:00
|
|
|
, ...
|
|
|
|
} @ args:
|
|
|
|
|
|
|
|
let
|
|
|
|
stdenv' = if kernel == null then stdenv else kernel.stdenv;
|
|
|
|
in
|
|
|
|
callPackage ./generic.nix args {
|
|
|
|
# check the release notes for compatible kernels
|
|
|
|
kernelCompatible =
|
2023-03-29 12:13:21 +00:00
|
|
|
if stdenv'.isx86_64 || removeLinuxDRM
|
2023-09-28 02:38:53 +00:00
|
|
|
then kernel.kernelOlder "6.6"
|
2023-05-07 10:55:24 +00:00
|
|
|
else kernel.kernelOlder "6.2";
|
2023-10-14 12:18:46 +00:00
|
|
|
|
2023-09-28 02:38:53 +00:00
|
|
|
latestCompatibleLinuxPackages = if stdenv'.isx86_64 || removeLinuxDRM
|
|
|
|
then linuxKernel.packages.linux_6_5
|
|
|
|
else linuxKernel.packages.linux_6_1;
|
2023-05-07 10:55:24 +00:00
|
|
|
|
|
|
|
# this package should point to the latest release.
|
2023-10-14 12:18:46 +00:00
|
|
|
version = "2.2.0";
|
2023-05-07 10:55:24 +00:00
|
|
|
|
2023-10-14 12:18:46 +00:00
|
|
|
sha256 = "sha256-s1sdXSrLu6uSOmjprbUa4cFsE2Vj7JX5i75e4vRnlvg=";
|
2023-05-07 10:55:24 +00:00
|
|
|
}
|