From ff54d08dc84474c0cac37116e33619dfa11747b0 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Wed, 29 Jan 2020 01:31:44 +0100 Subject: linux_5_5: init at 5.5 --- pkgs/os-specific/linux/kernel/linux-5.5.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 pkgs/os-specific/linux/kernel/linux-5.5.nix (limited to 'pkgs/os-specific') diff --git a/pkgs/os-specific/linux/kernel/linux-5.5.nix b/pkgs/os-specific/linux/kernel/linux-5.5.nix new file mode 100644 index 000000000000..7347cf1fa668 --- /dev/null +++ b/pkgs/os-specific/linux/kernel/linux-5.5.nix @@ -0,0 +1,18 @@ +{ stdenv, buildPackages, fetchurl, perl, buildLinux, modDirVersionArg ? null, ... } @ args: + +with stdenv.lib; + +buildLinux (args // rec { + version = "5.5"; + + # modDirVersion needs to be x.y.z, will automatically add .0 if needed + modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg; + + # branchVersion needs to be x.y + extraMeta.branch = versions.majorMinor version; + + src = fetchurl { + url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz"; + sha256 = "0c131fi6s7vgvka1c0597vnvcmwn1pp968rci5kq64iwj3pd9yx6"; + }; +} // (args.argsOverride or {})) -- cgit 1.4.1