9da079c6ff
This reverts commit fee8c0ae07
.
The required systemd update was done in 9f911ab1b5; test works for me:
nix build -f nixos/release.nix tests.latestKernel.login.x86_64-linux
19 lines
648 B
Nix
19 lines
648 B
Nix
{ stdenv, buildPackages, fetchurl, perl, buildLinux, modDirVersionArg ? null, ... } @ args:
|
|
|
|
with stdenv.lib;
|
|
|
|
buildLinux (args // rec {
|
|
version = "5.8";
|
|
|
|
# modDirVersion needs to be x.y.z, will automatically add .0 if needed
|
|
modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg;
|
|
|
|
# branchVersion needs to be x.y
|
|
extraMeta.branch = versions.majorMinor version;
|
|
|
|
src = fetchurl {
|
|
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
|
|
sha256 = "1xgibkwb1yfl6qdlbxyagai0qc1pk5ark7giz1512hh6ma353xz7";
|
|
};
|
|
} // (args.argsOverride or {}))
|