about summary refs log tree commit diff
path: root/pkgs/linux-4.12.nix
blob: 71a1a42f9b8be3365a84f4a12a06ce2d87fa8cb2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ stdenv, hostPlatform, fetchurl, perl, pkgs, buildLinux, ... }@args:

let
  nixpkgs = import ../nixpkgs-path.nix;
  generic = "${nixpkgs}/pkgs/os-specific/linux/kernel/generic.nix";
in import generic (args // rec {
  extraMeta.branch = "4.12";
  version = "4.12.14";

  src = fetchurl {
    url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
    sha256 = "09zxmknh6awhqmj8dyq95bdlwcasryy35hkjxjlzixdgn52kzaw6";
  };

  kernelPatches = (args.kernelPatches or []) ++ [
    pkgs.kernelPatches.bridge_stp_helper
    pkgs.kernelPatches.p9_fixes
    pkgs.kernelPatches.cpu-cgroup-v2."4.11"
    pkgs.kernelPatches.modinst_arg_list_too_long
  ];
} // (args.argsOverride or {}))