nixpkgs-suyu/pkgs/os-specific/linux/kernel/linux-testing.nix
Vladimír Čunát 241ffca67d
linux_testing_hardened: fix modDirVersion
and bring the linux-testing expression closer to the other versions.
2019-06-28 17:23:12 +02:00

20 lines
654 B
Nix

{ stdenv, buildPackages, fetchurl, perl, buildLinux, modDirVersionArg ? null, ... } @ args:
with stdenv.lib;
buildLinux (args // rec {
version = "5.2-rc6";
extraMeta.branch = "5.2";
# modDirVersion needs to be x.y.z, will always add .0
modDirVersion = if (modDirVersionArg == null) then builtins.replaceStrings ["-"] [".0-"] version else modDirVersionArg;
src = fetchurl {
url = "https://git.kernel.org/torvalds/t/linux-${version}.tar.gz";
sha256 = "15lwy9596v5sw8c6mhpl9ilfcmm39snvvyajg08ycsg61i2s58v0";
};
# Should the testing kernels ever be built on Hydra?
extraMeta.hydraPlatforms = [];
} // (args.argsOverride or {}))