nixpkgs/pkgs/os-specific/linux/kernel/linux-5.0.nix

18 lines
553 B
Nix
Raw Normal View History

{ stdenv, buildPackages, fetchurl, perl, buildLinux, modDirVersionArg ? null, ... } @ args:
with stdenv.lib;
buildLinux (args // rec {
2019-04-06 16:54:45 +00:00
version = "5.0.7";
# modDirVersion needs to be x.y.z, will automatically add .0 if needed
# branchVersion needs to be x.y
extraMeta.branch = concatStrings (intersperse "." (take 2 (splitString "." version)));
src = fetchurl {
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
2019-04-06 16:54:45 +00:00
sha256 = "1v2lxwamnfm879a9qi9fwp5zyvlzjw9qa0aizidjbiwz5dk7gq8n";
};
} // (args.argsOverride or {}))