about summary refs log tree commit diff
path: root/pkgs/linux-4.12.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2017-10-04 16:48:04 +0200
committeraszlig <aszlig@redmoonstudios.org>2017-10-04 16:50:24 +0200
commit45bdcd7fc7788316cbad2d7d412e421b230715dc (patch)
tree3ff6dccfd28a8e0df4e8f70a622038627a78d051 /pkgs/linux-4.12.nix
parent79e7591341abf1fa02efc99f01f1e0e9d223c74a (diff)
hardware/t100ha: Temporarily bring back Linux 4.12
It has been removed by NixOS/nixpkgs@964672dde516d1b9a5d2248db33253dc36.

This kernel version is officially EOL but in order to switch to a newer
kernel I need to rebase the patches first.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/linux-4.12.nix')
-rw-r--r--pkgs/linux-4.12.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/linux-4.12.nix b/pkgs/linux-4.12.nix
new file mode 100644
index 00000000..71a1a42f
--- /dev/null
+++ b/pkgs/linux-4.12.nix
@@ -0,0 +1,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 {}))