3
0
Fork 0
forked from mirrors/nixpkgs

treewide: remove obsolete kernel version checks

We no longer support any Linux kernel older than 4.9.
This commit is contained in:
Alyssa Ross 2022-03-30 18:57:15 +00:00
parent c099ec6aff
commit ae8e8aaee7
14 changed files with 12 additions and 46 deletions

View file

@ -16,11 +16,6 @@ in
config = mkIf cfg.enable {
assertions = singleton {
assertion = versionAtLeast kernelPackages.kernel.version "3.19";
message = "facetimehd is not supported for kernels older than 3.19";
};
boot.kernelModules = [ "facetimehd" ];
boot.blacklistedKernelModules = [ "bdc_pci" ];

View file

@ -36,7 +36,7 @@ stdenv.mkDerivation {
homepage = "https://github.com/anbox/anbox-modules";
license = licenses.gpl2Only;
platforms = platforms.linux;
broken = kernel.kernelOlder "4.4" || kernel.kernelAtLeast "5.5";
broken = kernel.kernelAtLeast "5.5";
maintainers = with maintainers; [ edwtjo ];
};
}

View file

@ -1,7 +1,5 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, kernel }:
assert lib.versionAtLeast kernel.version "3.5";
stdenv.mkDerivation rec {
pname = "digimend";
version = "unstable-2019-06-18";

View file

@ -42,6 +42,6 @@ stdenv.mkDerivation rec {
license = licenses.gpl2Only;
maintainers = [ maintainers.eelco ];
platforms = platforms.linux;
broken = kernel.kernelOlder "4.5" || kernel.kernelAtLeast "5.15";
broken = kernel.kernelAtLeast "5.15";
};
}

View file

@ -1,9 +1,9 @@
{ stdenv, lib, fetchFromGitHub, kernel }:
# facetimehd is not supported for kernels older than 3.19";
assert lib.versionAtLeast kernel.version "3.19";
stdenv.mkDerivation rec {
name = "facetimehd-${version}-${kernel.version}";
version = "unstable-2020-04-16";
let
# Note: When updating this revision:
# 1. Also update pkgs/os-specific/linux/firmware/facetimehd-firmware/
# 2. Test the module and firmware change via:
@ -14,29 +14,11 @@ let
# e. see if the module loads back (apps using the camera won't
# recover and will have to be restarted) and the camera
# still works.
srcParams = if (lib.versionAtLeast kernel.version "4.8") then
{ # Use mainline branch
version = "unstable-2020-04-16";
rev = "82626d4892eeb9eb704538bf0dc49a00725ff451";
sha256 = "118z6vjvhhcwvs4n3sgwwdagys9w718b8nkh6l9ic93732vv7cqx";
}
else
{ # Use master branch (broken on 4.8)
version = "unstable-2016-05-02";
rev = "5a7083bd98b38ef3bd223f7ee531d58f4fb0fe7c";
sha256 = "0d455kajvn5xav9iilqy7s1qvsy4yb8vzjjxx7bvcgp7aj9ljvdp";
}
;
in
stdenv.mkDerivation rec {
name = "facetimehd-${version}-${kernel.version}";
version = srcParams.version;
src = fetchFromGitHub {
owner = "patjak";
repo = "bcwc_pcie";
inherit (srcParams) rev sha256;
rev = "82626d4892eeb9eb704538bf0dc49a00725ff451";
sha256 = "118z6vjvhhcwvs4n3sgwwdagys9w718b8nkh6l9ic93732vv7cqx";
};
preConfigure = ''

View file

@ -2,8 +2,6 @@
with lib;
assert versionAtLeast linux.version "4.6";
stdenv.mkDerivation {
pname = "gpio-utils";
version = linux.version;

View file

@ -9,8 +9,6 @@
with lib;
assert versionAtLeast kernel.version "3.12";
stdenv.mkDerivation {
pname = "perf-linux";
version = kernel.version;

View file

@ -35,6 +35,5 @@ stdenv.mkDerivation rec {
homepage = "https://wkz.github.io/ply/";
license = [ licenses.gpl2Only ];
maintainers = with maintainers; [ mic92 mbbx6spp ];
broken = lib.versionOlder kernel.version "4.0";
};
}

View file

@ -1,7 +1,5 @@
{ stdenv, lib, fetchFromGitHub, kernel }:
assert lib.versionAtLeast kernel.version "4.4";
stdenv.mkDerivation {
pname = "sch_cake";
version = "unstable-2017-07-16";

View file

@ -1,7 +1,5 @@
{ lib, stdenv, fetchzip, kernel, perl, wireguard-tools, bc }:
# module requires Linux >= 3.10 https://www.wireguard.io/install/#kernel-requirements
assert lib.versionAtLeast kernel.version "3.10";
# wireguard upstreamed since 5.6 https://lists.zx2c4.com/pipermail/wireguard/2019-December/004704.html
assert lib.versionOlder kernel.version "5.6";

View file

@ -216,7 +216,7 @@ in {
# to be adapted
zfsStable = common {
# check the release notes for compatible kernels
kernelCompatible = kernel.kernelAtLeast "3.10" && kernel.kernelOlder "5.18";
kernelCompatible = kernel.kernelOlder "5.18";
latestCompatibleLinuxPackages = linuxPackages_5_17;
# this package should point to the latest release.
@ -227,7 +227,7 @@ in {
zfsUnstable = common {
# check the release notes for compatible kernels
kernelCompatible = kernel.kernelAtLeast "3.10" && kernel.kernelOlder "5.18";
kernelCompatible = kernel.kernelOlder "5.18";
latestCompatibleLinuxPackages = linuxPackages_5_17;
# this package should point to a version / git revision compatible with the latest kernel release

View file

@ -70,6 +70,6 @@ stdenv.mkDerivation {
license = licenses.ipl10;
platforms = platforms.linux;
maintainers = with maintainers; [ maggesi spacefrogg ];
broken = kernel.kernelOlder "3.18" || kernel.kernelAtLeast "5.17" || kernel.isHardened;
broken = kernel.kernelAtLeast "5.17" || kernel.isHardened;
};
}

View file

@ -59,6 +59,6 @@ in stdenv.mkDerivation {
license = licenses.ipl10;
platforms = platforms.linux;
maintainers = [ maintainers.maggesi maintainers.spacefrogg ];
broken = versionOlder kernel.version "3.18" || kernel.kernelAtLeast "5.15" || kernel.isHardened;
broken = kernel.kernelAtLeast "5.15" || kernel.isHardened;
};
}

View file

@ -404,7 +404,7 @@ in {
oci-seccomp-bpf-hook = if lib.versionAtLeast kernel.version "5.4" then callPackage ../os-specific/linux/oci-seccomp-bpf-hook { } else null;
perf = if lib.versionAtLeast kernel.version "3.12" then callPackage ../os-specific/linux/kernel/perf.nix { } else null;
perf = callPackage ../os-specific/linux/kernel/perf.nix { };
phc-intel = if lib.versionAtLeast kernel.version "4.10" then callPackage ../os-specific/linux/phc-intel { } else null;