diff options
author | Tim Steinbach <tim@nequissimus.com> | 2018-06-04 14:12:03 -0400 |
---|---|---|
committer | Tim Steinbach <tim@nequissimus.com> | 2018-06-04 14:12:03 -0400 |
commit | 39444569e0c6e96bceea74840762202e0e968f32 (patch) | |
tree | c1237eefa1b331a75e1e912a04e250689af5c6e7 /pkgs/os-specific/linux/kernel | |
parent | 5c4a404b0d0e5125070dde5c1787210149157e83 (diff) | |
download | nixpkgs-39444569e0c6e96bceea74840762202e0e968f32.tar nixpkgs-39444569e0c6e96bceea74840762202e0e968f32.tar.gz nixpkgs-39444569e0c6e96bceea74840762202e0e968f32.tar.bz2 nixpkgs-39444569e0c6e96bceea74840762202e0e968f32.tar.lz nixpkgs-39444569e0c6e96bceea74840762202e0e968f32.tar.xz nixpkgs-39444569e0c6e96bceea74840762202e0e968f32.tar.zst nixpkgs-39444569e0c6e96bceea74840762202e0e968f32.zip |
linux: Add 4.17
Diffstat (limited to 'pkgs/os-specific/linux/kernel')
-rw-r--r-- | pkgs/os-specific/linux/kernel/linux-4.17.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/linux-4.17.nix b/pkgs/os-specific/linux/kernel/linux-4.17.nix new file mode 100644 index 00000000000..b360e98f0c0 --- /dev/null +++ b/pkgs/os-specific/linux/kernel/linux-4.17.nix @@ -0,0 +1,18 @@ +{ stdenv, buildPackages, hostPlatform, fetchurl, perl, buildLinux, modDirVersionArg ? null, ... } @ args: + +with stdenv.lib; + +buildLinux (args // rec { + version = "4.17"; + + # modDirVersion needs to be x.y.z, will automatically add .0 if needed + modDirVersion = if (modDirVersionArg == null) then concatStrings (intersperse "." (take 3 (splitString "." "${version}.0"))) else modDirVersionArg; + + # branchVersion needs to be x.y + extraMeta.branch = concatStrings (intersperse "." (take 2 (splitString "." version))); + + src = fetchurl { + url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz"; + sha256 = "04yd7hnsdyaq4xmrgg7509qjf09k1dy6k1p8qqfrdspajvc1valz"; + }; +} // (args.argsOverride or {})) |