Merge branch 'master' into staging-next
Hydra nixpkgs: ?compare=1527134
This commit is contained in:
@@ -211,6 +211,13 @@ in rec {
|
||||
--replace "QuartzCore/../Frameworks/CoreImage.framework/Headers" "CoreImage"
|
||||
'';
|
||||
});
|
||||
|
||||
MetalKit = stdenv.lib.overrideDerivation super.MetalKit (drv: {
|
||||
installPhase = drv.installPhase + ''
|
||||
mkdir -p $out/include/simd
|
||||
cp ${lib.getDev sdk}/include/simd/*.h $out/include/simd/
|
||||
'';
|
||||
});
|
||||
};
|
||||
|
||||
bareFrameworks = stdenv.lib.mapAttrs framework (import ./frameworks.nix {
|
||||
|
||||
@@ -74,6 +74,8 @@ with frameworks; with libs; {
|
||||
MediaAccessibility = [ CF CoreGraphics CoreText QuartzCore ];
|
||||
MediaToolbox = [ AudioToolbox AudioUnit CF CoreMedia ];
|
||||
Metal = [];
|
||||
MetalKit = [ ModelIO Metal ];
|
||||
ModelIO = [ ];
|
||||
NetFS = [ CF ];
|
||||
OSAKit = [ Carbon ];
|
||||
OpenAL = [];
|
||||
|
||||
@@ -710,6 +710,9 @@ let
|
||||
# Bump the maximum number of CPUs to support systems like EC2 x1.*
|
||||
# instances and Xeon Phi.
|
||||
NR_CPUS = freeform "384";
|
||||
} // optionalAttrs (stdenv.hostPlatform.system == "aarch64-linux") {
|
||||
# Enables support for the Allwinner Display Engine 2.0
|
||||
SUN8I_DE2_CCU = whenAtLeast "4.13" yes;
|
||||
};
|
||||
};
|
||||
in
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
{ stdenv, buildPackages, fetchurl, perl, buildLinux, modDirVersionArg ? null, ... } @ args:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
buildLinux (args // rec {
|
||||
version = "5.0.21";
|
||||
|
||||
# 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/v5.x/linux-${version}.tar.xz";
|
||||
sha256 = "1my2m9hvnvdrvzcg0fgqgaga59y2cd5zlpv7xrfj2nn98sjhglwq";
|
||||
};
|
||||
} // (args.argsOverride or {}))
|
||||
@@ -1,47 +0,0 @@
|
||||
{ stdenv, buildPackages, fetchFromGitHub, perl, buildLinux, ... } @ args:
|
||||
|
||||
buildLinux (rec {
|
||||
mptcpVersion = "0.93";
|
||||
modDirVersion = "4.9.60";
|
||||
version = "${modDirVersion}-mptcp_v${mptcpVersion}";
|
||||
|
||||
extraMeta = {
|
||||
branch = "4.4";
|
||||
maintainers = with stdenv.lib.maintainers; [ teto layus ];
|
||||
};
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "multipath-tcp";
|
||||
repo = "mptcp";
|
||||
rev = "v${mptcpVersion}";
|
||||
sha256 = "1irlppzvcmckrazs2c4vg6y8ji31552izc3wqabf401v57jvxcys";
|
||||
};
|
||||
|
||||
extraConfig = ''
|
||||
IPV6 y
|
||||
MPTCP y
|
||||
IP_MULTIPLE_TABLES y
|
||||
|
||||
# Enable advanced path-managers...
|
||||
MPTCP_PM_ADVANCED y
|
||||
MPTCP_FULLMESH y
|
||||
MPTCP_NDIFFPORTS y
|
||||
# ... but use none by default.
|
||||
# The default is safer if source policy routing is not setup.
|
||||
DEFAULT_DUMMY y
|
||||
DEFAULT_MPTCP_PM default
|
||||
|
||||
# MPTCP scheduler selection.
|
||||
# Disabled as the only non-default is the useless round-robin.
|
||||
MPTCP_SCHED_ADVANCED n
|
||||
DEFAULT_MPTCP_SCHED default
|
||||
|
||||
# Smarter TCP congestion controllers
|
||||
TCP_CONG_LIA m
|
||||
TCP_CONG_OLIA m
|
||||
TCP_CONG_WVEGAS m
|
||||
TCP_CONG_BALIA m
|
||||
|
||||
'' + (args.extraConfig or "");
|
||||
} // args)
|
||||
|
||||
26
pkgs/os-specific/linux/kernel/linux-mptcp-94.nix
Normal file
26
pkgs/os-specific/linux/kernel/linux-mptcp-94.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ stdenv, buildPackages, fetchFromGitHub, perl, buildLinux, structuredExtraConfig ? {}, ... } @ args:
|
||||
let
|
||||
mptcpVersion = "0.94.6";
|
||||
modDirVersion = "4.14.127";
|
||||
in
|
||||
buildLinux ({
|
||||
version = "${modDirVersion}-mptcp_v${mptcpVersion}";
|
||||
inherit modDirVersion;
|
||||
|
||||
extraMeta = {
|
||||
branch = "4.4";
|
||||
maintainers = with stdenv.lib.maintainers; [ teto layus ];
|
||||
};
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "multipath-tcp";
|
||||
repo = "mptcp";
|
||||
rev = "v${mptcpVersion}";
|
||||
sha256 = "071cx9205wpzhi5gc2da79w2abs3czd60jg0xml7j1szc5wl4yfn";
|
||||
};
|
||||
|
||||
structuredExtraConfig = stdenv.lib.mkMerge [
|
||||
(import ./mptcp-config.nix { inherit stdenv; })
|
||||
structuredExtraConfig
|
||||
];
|
||||
} // args)
|
||||
27
pkgs/os-specific/linux/kernel/linux-mptcp-95.nix
Normal file
27
pkgs/os-specific/linux/kernel/linux-mptcp-95.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ stdenv, buildPackages, fetchFromGitHub, perl, buildLinux, structuredExtraConfig ? {}, ... } @ args:
|
||||
let
|
||||
mptcpVersion = "0.95";
|
||||
modDirVersion = "4.19.55";
|
||||
in
|
||||
buildLinux ({
|
||||
version = "${modDirVersion}-mptcp_v${mptcpVersion}";
|
||||
inherit modDirVersion;
|
||||
|
||||
extraMeta = {
|
||||
branch = "4.19";
|
||||
maintainers = with stdenv.lib.maintainers; [ teto layus ];
|
||||
};
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "multipath-tcp";
|
||||
repo = "mptcp";
|
||||
rev = "v${mptcpVersion}";
|
||||
sha256 = "04a66iq5vsiz8mkpszfxmqknz7y4w3lsckrcz6q1syjpk0pdyiyw";
|
||||
};
|
||||
|
||||
structuredExtraConfig = stdenv.lib.mkMerge [
|
||||
(import ./mptcp-config.nix { inherit stdenv; })
|
||||
structuredExtraConfig
|
||||
];
|
||||
|
||||
} // args)
|
||||
@@ -1,49 +0,0 @@
|
||||
{ stdenv, buildPackages, fetchFromGitHub, perl, buildLinux, structuredExtraConfig ? {}, ... } @ args:
|
||||
let
|
||||
mptcpVersion = "0.94.4";
|
||||
modDirVersion = "4.14.110";
|
||||
in
|
||||
buildLinux ({
|
||||
version = "${modDirVersion}-mptcp_v${mptcpVersion}";
|
||||
inherit modDirVersion;
|
||||
|
||||
extraMeta = {
|
||||
branch = "4.4";
|
||||
maintainers = with stdenv.lib.maintainers; [ teto layus ];
|
||||
};
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "multipath-tcp";
|
||||
repo = "mptcp";
|
||||
rev = "v${mptcpVersion}";
|
||||
sha256 = "1ng6p1djhm3m5g44yyq7gpqqbzsnhm9rimsafp5g4dx8cm27a70f";
|
||||
};
|
||||
|
||||
structuredExtraConfig = with import ../../../../lib/kernel.nix { inherit (stdenv) lib; version = null; };
|
||||
stdenv.lib.mkMerge [ {
|
||||
IPV6 = yes;
|
||||
MPTCP = yes;
|
||||
IP_MULTIPLE_TABLES = yes;
|
||||
|
||||
# Enable advanced path-managers...
|
||||
MPTCP_PM_ADVANCED = yes;
|
||||
MPTCP_FULLMESH = yes;
|
||||
MPTCP_NDIFFPORTS = yes;
|
||||
# ... but use none by default.
|
||||
# The default is safer if source policy routing is not setup.
|
||||
DEFAULT_DUMMY = yes;
|
||||
DEFAULT_MPTCP_PM.freeform = "default";
|
||||
|
||||
# MPTCP scheduler selection.
|
||||
MPTCP_SCHED_ADVANCED = yes;
|
||||
DEFAULT_MPTCP_SCHED.freeform = "default";
|
||||
|
||||
# Smarter TCP congestion controllers
|
||||
TCP_CONG_LIA = module;
|
||||
TCP_CONG_OLIA = module;
|
||||
TCP_CONG_WVEGAS = module;
|
||||
TCP_CONG_BALIA = module;
|
||||
}
|
||||
structuredExtraConfig
|
||||
];
|
||||
} // args)
|
||||
28
pkgs/os-specific/linux/kernel/mptcp-config.nix
Normal file
28
pkgs/os-specific/linux/kernel/mptcp-config.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ stdenv }:
|
||||
with import ../../../../lib/kernel.nix { inherit (stdenv) lib; version = null; };
|
||||
{
|
||||
# DRM_AMDGPU = yes;
|
||||
|
||||
IPV6 = yes;
|
||||
MPTCP = yes;
|
||||
IP_MULTIPLE_TABLES = yes;
|
||||
|
||||
# Enable advanced path-managers...
|
||||
MPTCP_PM_ADVANCED = yes;
|
||||
MPTCP_FULLMESH = yes;
|
||||
MPTCP_NDIFFPORTS = yes;
|
||||
# ... but use none by default.
|
||||
# The default is safer if source policy routing is not setup.
|
||||
DEFAULT_DUMMY = yes;
|
||||
DEFAULT_MPTCP_PM.freeform = "default";
|
||||
|
||||
# MPTCP scheduler selection.
|
||||
MPTCP_SCHED_ADVANCED = yes;
|
||||
DEFAULT_MPTCP_SCHED.freeform = "default";
|
||||
|
||||
# Smarter TCP congestion controllers
|
||||
TCP_CONG_LIA = module;
|
||||
TCP_CONG_OLIA = module;
|
||||
TCP_CONG_WVEGAS = module;
|
||||
TCP_CONG_BALIA = module;
|
||||
}
|
||||
Reference in New Issue
Block a user