about summary refs log tree commit diff
path: root/pkgs
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
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')
-rw-r--r--pkgs/default.nix2
-rw-r--r--pkgs/linux-4.12.nix21
2 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix
index ce39a5bc..d8297464 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -24,5 +24,7 @@ let
     openlab = callPackageScope ./openlab;
     profpatsch = callPackageScope ./profpatsch;
     sternenseemann = callPackageScope ./sternenseemann;
+
+    linux_4_12 = callPackage ./linux-4.12.nix {};
   };
 in pkgs // self
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 {}))