Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPackages, fetchurl, perl, buildLinux, modDirVersionArg ? null, ... } @ args:
2
3with stdenv.lib;
4
5buildLinux (args // rec {
6 version = "5.9-rc3";
7 extraMeta.branch = "5.9";
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 = "1byckdxy0y5i3lgw3f3n7b4r3v1xb4g1z3ffiq3hp4ga4nf5xzw3";
15 };
16
17 # Should the testing kernels ever be built on Hydra?
18 extraMeta.hydraPlatforms = [];
19
20} // (args.argsOverride or {}))