2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPackages, fetchFromGitHub, perl, buildLinux, structuredExtraConfig ? {}, ... } @ args:
|
2019-06-24 02:58:07 +00:00
|
|
|
let
|
2021-03-05 11:13:30 +00:00
|
|
|
mptcpVersion = "0.95.1";
|
|
|
|
modDirVersion = "4.19.126";
|
2019-06-24 02:58:07 +00:00
|
|
|
in
|
|
|
|
buildLinux ({
|
|
|
|
version = "${modDirVersion}-mptcp_v${mptcpVersion}";
|
|
|
|
inherit modDirVersion;
|
|
|
|
|
|
|
|
extraMeta = {
|
|
|
|
branch = "4.19";
|
2021-01-15 14:45:37 +00:00
|
|
|
maintainers = with lib.maintainers; [ teto layus ];
|
2019-06-24 02:58:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "multipath-tcp";
|
|
|
|
repo = "mptcp";
|
|
|
|
rev = "v${mptcpVersion}";
|
2021-03-05 11:13:30 +00:00
|
|
|
sha256 = "sha256-J9UXhkI49cq83EtojLHieRtp8fT3LXTJNIqb+mUwZdM=";
|
2019-06-24 02:58:07 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 14:45:37 +00:00
|
|
|
structuredExtraConfig = lib.mkMerge [
|
|
|
|
(import ./mptcp-config.nix { inherit lib; })
|
2019-06-24 02:58:07 +00:00
|
|
|
structuredExtraConfig
|
|
|
|
];
|
|
|
|
|
|
|
|
} // args)
|