about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/mainline.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/os-specific/linux/kernel/mainline.nix')
-rw-r--r--pkgs/os-specific/linux/kernel/mainline.nix27
1 files changed, 0 insertions, 27 deletions
diff --git a/pkgs/os-specific/linux/kernel/mainline.nix b/pkgs/os-specific/linux/kernel/mainline.nix
deleted file mode 100644
index 4e1d5b8a9e87..000000000000
--- a/pkgs/os-specific/linux/kernel/mainline.nix
+++ /dev/null
@@ -1,27 +0,0 @@
-{ branch, lib, fetchurl, fetchzip, buildLinux, ... } @ args:
-
-let
-  allKernels = builtins.fromJSON (builtins.readFile ./kernels-org.json);
-  thisKernel = allKernels.${branch};
-  inherit (thisKernel) version;
-
-  src =
-    # testing kernels are a special case because they don't have tarballs on the CDN
-    if branch == "testing"
-      then fetchzip {
-        url = "https://git.kernel.org/torvalds/t/linux-${version}.tar.gz";
-        inherit (thisKernel) hash;
-      }
-      else fetchurl {
-        url = "mirror://kernel/linux/kernel/v${lib.versions.major version}.x/linux-${version}.tar.xz";
-        inherit (thisKernel) hash;
-      };
-
-  args' = (builtins.removeAttrs args ["branch"]) // {
-    inherit src version;
-
-    modDirVersion = lib.versions.pad 3 version;
-    extraMeta.branch = branch;
-  } // (args.argsOverride or {});
-in
-buildLinux args'