mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-16 07:59:41 +01:00
61210f5e44
- Add kernel 5.10.19 and latest linux-surface patches - Remove kernel 5.10.2 commit7250b8cbb4
Author: mexisme <wildjim+dev@kiwinet.org> Date: Fri Feb 5 08:38:10 2021 +1300 commit90b210dfee
Author: mexisme <wildjim+dev@kiwinet.org> Date: Fri Feb 5 08:37:41 2021 +1300 commitbbb5dec0e3
Author: mexisme <wildjim+dev@kiwinet.org> Date: Tue Feb 2 23:58:51 2021 +1300 commitbde79616d2
Author: mexisme <wildjim+dev@kiwinet.org> Date: Tue Feb 2 23:58:35 2021 +1300 commitbe5b9c91ac
Author: mexisme <wildjim+dev@kiwinet.org> Date: Tue Feb 2 23:57:54 2021 +1300
18 lines
652 B
Nix
18 lines
652 B
Nix
{ stdenv, buildPackages, fetchurl, perl, buildLinux, modDirVersionArg ? null, ... } @ args:
|
|
|
|
with stdenv.lib;
|
|
|
|
buildLinux (args // rec {
|
|
version = "5.10.19";
|
|
|
|
# modDirVersion needs to be x.y.z, will automatically add .0 if needed
|
|
modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg;
|
|
|
|
# branchVersion needs to be x.y
|
|
extraMeta.branch = versions.majorMinor version;
|
|
|
|
src = fetchurl {
|
|
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
|
|
sha256 = "1mml5a30ky0khzj3r6ahybycbbszk86agq62qclwq2kzvsqbprr7";
|
|
};
|
|
} // (args.argsOverride or {}))
|