2023-05-24 13:37:59 +00:00
|
|
|
{ callPackage
|
|
|
|
, kernel ? null
|
|
|
|
, stdenv
|
|
|
|
, linuxKernel
|
2023-07-15 17:15:38 +00:00
|
|
|
, removeLinuxDRM ? false
|
2023-05-24 13:37:59 +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-07-15 17:15:38 +00:00
|
|
|
if stdenv'.isx86_64 || removeLinuxDRM
|
|
|
|
then kernel.kernelOlder "6.4"
|
2023-05-24 13:37:59 +00:00
|
|
|
else kernel.kernelOlder "6.2";
|
2023-07-15 17:15:38 +00:00
|
|
|
latestCompatibleLinuxPackages = if stdenv'.isx86_64 || removeLinuxDRM then
|
|
|
|
linuxKernel.packages.linux_6_3
|
|
|
|
else
|
|
|
|
linuxKernel.packages.linux_6_1;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
# this package should point to the latest release.
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "2.1.12";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "eYUR5d4gpTrlFu6j1uL83DWL9uPGgAUDRdSEb73V5i4=";
|
2023-05-24 13:37:59 +00:00
|
|
|
}
|