nixpkgs/pkgs/os-specific/linux/kernel/linux-5.15.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
658 B
Nix
Raw Normal View History

{ lib, buildPackages, fetchurl, perl, buildLinux, nixosTests, modDirVersionArg ? null, ... } @ args:
2021-11-01 07:34:59 +00:00
with lib;
buildLinux (args // rec {
2022-12-16 16:58:46 +00:00
version = "5.15.83";
2021-11-01 07:34:59 +00:00
# modDirVersion needs to be x.y.z, will automatically add .0 if needed
modDirVersion = versions.pad 3 version;
2021-11-01 07:34:59 +00:00
# branchVersion needs to be x.y
extraMeta.branch = versions.majorMinor version;
src = fetchurl {
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
2022-12-16 16:58:46 +00:00
sha256 = "1wvzfhzqq9dps508wmp2gblfz93ipppnjzqm0n8pi1acq11hhna0";
2021-11-01 07:34:59 +00:00
};
} // (args.argsOverride or { }))
// lib.optionalAttrs (modDirVersionArg != null) { modDirVersion = modDirVersionArg; } # legacy