treewide: remove obsolete kernel version checks

We no longer support any Linux kernel older than 4.9.

+12 -46
-5
nixos/modules/hardware/video/webcam/facetimehd.nix
··· 16 17 config = mkIf cfg.enable { 18 19 - assertions = singleton { 20 - assertion = versionAtLeast kernelPackages.kernel.version "3.19"; 21 - message = "facetimehd is not supported for kernels older than 3.19"; 22 - }; 23 - 24 boot.kernelModules = [ "facetimehd" ]; 25 26 boot.blacklistedKernelModules = [ "bdc_pci" ];
··· 16 17 config = mkIf cfg.enable { 18 19 boot.kernelModules = [ "facetimehd" ]; 20 21 boot.blacklistedKernelModules = [ "bdc_pci" ];
+1 -1
pkgs/os-specific/linux/anbox/kmod.nix
··· 36 homepage = "https://github.com/anbox/anbox-modules"; 37 license = licenses.gpl2Only; 38 platforms = platforms.linux; 39 - broken = kernel.kernelOlder "4.4" || kernel.kernelAtLeast "5.5"; 40 maintainers = with maintainers; [ edwtjo ]; 41 }; 42 }
··· 36 homepage = "https://github.com/anbox/anbox-modules"; 37 license = licenses.gpl2Only; 38 platforms = platforms.linux; 39 + broken = kernel.kernelAtLeast "5.5"; 40 maintainers = with maintainers; [ edwtjo ]; 41 }; 42 }
-2
pkgs/os-specific/linux/digimend/default.nix
··· 1 { lib, stdenv, fetchFromGitHub, fetchpatch, kernel }: 2 3 - assert lib.versionAtLeast kernel.version "3.5"; 4 - 5 stdenv.mkDerivation rec { 6 pname = "digimend"; 7 version = "unstable-2019-06-18";
··· 1 { lib, stdenv, fetchFromGitHub, fetchpatch, kernel }: 2 3 stdenv.mkDerivation rec { 4 pname = "digimend"; 5 version = "unstable-2019-06-18";
+1 -1
pkgs/os-specific/linux/ena/default.nix
··· 42 license = licenses.gpl2Only; 43 maintainers = [ maintainers.eelco ]; 44 platforms = platforms.linux; 45 - broken = kernel.kernelOlder "4.5" || kernel.kernelAtLeast "5.15"; 46 }; 47 }
··· 42 license = licenses.gpl2Only; 43 maintainers = [ maintainers.eelco ]; 44 platforms = platforms.linux; 45 + broken = kernel.kernelAtLeast "5.15"; 46 }; 47 }
+5 -23
pkgs/os-specific/linux/facetimehd/default.nix
··· 1 { stdenv, lib, fetchFromGitHub, kernel }: 2 3 - # facetimehd is not supported for kernels older than 3.19"; 4 - assert lib.versionAtLeast kernel.version "3.19"; 5 6 - let 7 # Note: When updating this revision: 8 # 1. Also update pkgs/os-specific/linux/firmware/facetimehd-firmware/ 9 # 2. Test the module and firmware change via: ··· 14 # e. see if the module loads back (apps using the camera won't 15 # recover and will have to be restarted) and the camera 16 # still works. 17 - srcParams = if (lib.versionAtLeast kernel.version "4.8") then 18 - { # Use mainline branch 19 - version = "unstable-2020-04-16"; 20 - rev = "82626d4892eeb9eb704538bf0dc49a00725ff451"; 21 - sha256 = "118z6vjvhhcwvs4n3sgwwdagys9w718b8nkh6l9ic93732vv7cqx"; 22 - } 23 - else 24 - { # Use master branch (broken on 4.8) 25 - version = "unstable-2016-05-02"; 26 - rev = "5a7083bd98b38ef3bd223f7ee531d58f4fb0fe7c"; 27 - sha256 = "0d455kajvn5xav9iilqy7s1qvsy4yb8vzjjxx7bvcgp7aj9ljvdp"; 28 - } 29 - ; 30 - in 31 - 32 - stdenv.mkDerivation rec { 33 - name = "facetimehd-${version}-${kernel.version}"; 34 - version = srcParams.version; 35 - 36 src = fetchFromGitHub { 37 owner = "patjak"; 38 repo = "bcwc_pcie"; 39 - inherit (srcParams) rev sha256; 40 }; 41 42 preConfigure = ''
··· 1 { stdenv, lib, fetchFromGitHub, kernel }: 2 3 + stdenv.mkDerivation rec { 4 + name = "facetimehd-${version}-${kernel.version}"; 5 + version = "unstable-2020-04-16"; 6 7 # Note: When updating this revision: 8 # 1. Also update pkgs/os-specific/linux/firmware/facetimehd-firmware/ 9 # 2. Test the module and firmware change via: ··· 14 # e. see if the module loads back (apps using the camera won't 15 # recover and will have to be restarted) and the camera 16 # still works. 17 src = fetchFromGitHub { 18 owner = "patjak"; 19 repo = "bcwc_pcie"; 20 + rev = "82626d4892eeb9eb704538bf0dc49a00725ff451"; 21 + sha256 = "118z6vjvhhcwvs4n3sgwwdagys9w718b8nkh6l9ic93732vv7cqx"; 22 }; 23 24 preConfigure = ''
-2
pkgs/os-specific/linux/kernel/gpio-utils.nix
··· 2 3 with lib; 4 5 - assert versionAtLeast linux.version "4.6"; 6 - 7 stdenv.mkDerivation { 8 pname = "gpio-utils"; 9 version = linux.version;
··· 2 3 with lib; 4 5 stdenv.mkDerivation { 6 pname = "gpio-utils"; 7 version = linux.version;
-2
pkgs/os-specific/linux/kernel/perf.nix
··· 9 10 with lib; 11 12 - assert versionAtLeast kernel.version "3.12"; 13 - 14 stdenv.mkDerivation { 15 pname = "perf-linux"; 16 version = kernel.version;
··· 9 10 with lib; 11 12 stdenv.mkDerivation { 13 pname = "perf-linux"; 14 version = kernel.version;
-1
pkgs/os-specific/linux/ply/default.nix
··· 35 homepage = "https://wkz.github.io/ply/"; 36 license = [ licenses.gpl2Only ]; 37 maintainers = with maintainers; [ mic92 mbbx6spp ]; 38 - broken = lib.versionOlder kernel.version "4.0"; 39 }; 40 }
··· 35 homepage = "https://wkz.github.io/ply/"; 36 license = [ licenses.gpl2Only ]; 37 maintainers = with maintainers; [ mic92 mbbx6spp ]; 38 }; 39 }
-2
pkgs/os-specific/linux/sch_cake/default.nix
··· 1 { stdenv, lib, fetchFromGitHub, kernel }: 2 3 - assert lib.versionAtLeast kernel.version "4.4"; 4 - 5 stdenv.mkDerivation { 6 pname = "sch_cake"; 7 version = "unstable-2017-07-16";
··· 1 { stdenv, lib, fetchFromGitHub, kernel }: 2 3 stdenv.mkDerivation { 4 pname = "sch_cake"; 5 version = "unstable-2017-07-16";
-2
pkgs/os-specific/linux/wireguard/default.nix
··· 1 { lib, stdenv, fetchzip, kernel, perl, wireguard-tools, bc }: 2 3 - # module requires Linux >= 3.10 https://www.wireguard.io/install/#kernel-requirements 4 - assert lib.versionAtLeast kernel.version "3.10"; 5 # wireguard upstreamed since 5.6 https://lists.zx2c4.com/pipermail/wireguard/2019-December/004704.html 6 assert lib.versionOlder kernel.version "5.6"; 7
··· 1 { lib, stdenv, fetchzip, kernel, perl, wireguard-tools, bc }: 2 3 # wireguard upstreamed since 5.6 https://lists.zx2c4.com/pipermail/wireguard/2019-December/004704.html 4 assert lib.versionOlder kernel.version "5.6"; 5
+2 -2
pkgs/os-specific/linux/zfs/default.nix
··· 216 # to be adapted 217 zfsStable = common { 218 # check the release notes for compatible kernels 219 - kernelCompatible = kernel.kernelAtLeast "3.10" && kernel.kernelOlder "5.18"; 220 latestCompatibleLinuxPackages = linuxPackages_5_17; 221 222 # this package should point to the latest release. ··· 227 228 zfsUnstable = common { 229 # check the release notes for compatible kernels 230 - kernelCompatible = kernel.kernelAtLeast "3.10" && kernel.kernelOlder "5.18"; 231 latestCompatibleLinuxPackages = linuxPackages_5_17; 232 233 # this package should point to a version / git revision compatible with the latest kernel release
··· 216 # to be adapted 217 zfsStable = common { 218 # check the release notes for compatible kernels 219 + kernelCompatible = kernel.kernelOlder "5.18"; 220 latestCompatibleLinuxPackages = linuxPackages_5_17; 221 222 # this package should point to the latest release. ··· 227 228 zfsUnstable = common { 229 # check the release notes for compatible kernels 230 + kernelCompatible = kernel.kernelOlder "5.18"; 231 latestCompatibleLinuxPackages = linuxPackages_5_17; 232 233 # this package should point to a version / git revision compatible with the latest kernel release
+1 -1
pkgs/servers/openafs/1.8/module.nix
··· 70 license = licenses.ipl10; 71 platforms = platforms.linux; 72 maintainers = with maintainers; [ maggesi spacefrogg ]; 73 - broken = kernel.kernelOlder "3.18" || kernel.kernelAtLeast "5.17" || kernel.isHardened; 74 }; 75 }
··· 70 license = licenses.ipl10; 71 platforms = platforms.linux; 72 maintainers = with maintainers; [ maggesi spacefrogg ]; 73 + broken = kernel.kernelAtLeast "5.17" || kernel.isHardened; 74 }; 75 }
+1 -1
pkgs/servers/openafs/1.9/module.nix
··· 59 license = licenses.ipl10; 60 platforms = platforms.linux; 61 maintainers = [ maintainers.maggesi maintainers.spacefrogg ]; 62 - broken = versionOlder kernel.version "3.18" || kernel.kernelAtLeast "5.15" || kernel.isHardened; 63 }; 64 }
··· 59 license = licenses.ipl10; 60 platforms = platforms.linux; 61 maintainers = [ maintainers.maggesi maintainers.spacefrogg ]; 62 + broken = kernel.kernelAtLeast "5.15" || kernel.isHardened; 63 }; 64 }
+1 -1
pkgs/top-level/linux-kernels.nix
··· 404 405 oci-seccomp-bpf-hook = if lib.versionAtLeast kernel.version "5.4" then callPackage ../os-specific/linux/oci-seccomp-bpf-hook { } else null; 406 407 - perf = if lib.versionAtLeast kernel.version "3.12" then callPackage ../os-specific/linux/kernel/perf.nix { } else null; 408 409 phc-intel = if lib.versionAtLeast kernel.version "4.10" then callPackage ../os-specific/linux/phc-intel { } else null; 410
··· 404 405 oci-seccomp-bpf-hook = if lib.versionAtLeast kernel.version "5.4" then callPackage ../os-specific/linux/oci-seccomp-bpf-hook { } else null; 406 407 + perf = callPackage ../os-specific/linux/kernel/perf.nix { }; 408 409 phc-intel = if lib.versionAtLeast kernel.version "4.10" then callPackage ../os-specific/linux/phc-intel { } else null; 410