1{ stdenv, buildPackages, fetchurl, perl, buildLinux, modDirVersionArg ? null, ... } @ args:
2
3with stdenv.lib;
4
5buildLinux (args // rec {
6 version = "5.1-rc4";
7 extraMeta.branch = "5.1";
8
9 # modDirVersion needs to be x.y.z, will always add .0
10 modDirVersion = if (modDirVersionArg == null) then builtins.replaceStrings ["-"] [".0-"] version else modDirVersionArg;
11
12 src = fetchurl {
13 url = "https://git.kernel.org/torvalds/t/linux-${version}.tar.gz";
14 sha256 = "1cqr80b3jfr4g48fpni0pj2p5zs9930q6k6m9xjjdnsrhax1isr6";
15 };
16
17 # Should the testing kernels ever be built on Hydra?
18 extraMeta.hydraPlatforms = [];
19
20} // (args.argsOverride or {}))