2021-01-15 14:45:37 +00:00
|
|
|
{ lib, stdenv, buildPackages, fetchFromGitHub, perl, buildLinux, structuredExtraConfig ? {}, ... } @ args:
|
2019-06-24 03:58:07 +01:00
|
|
|
let
|
|
|
|
mptcpVersion = "0.95";
|
|
|
|
modDirVersion = "4.19.55";
|
|
|
|
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 03:58:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "multipath-tcp";
|
|
|
|
repo = "mptcp";
|
|
|
|
rev = "v${mptcpVersion}";
|
|
|
|
sha256 = "04a66iq5vsiz8mkpszfxmqknz7y4w3lsckrcz6q1syjpk0pdyiyw";
|
|
|
|
};
|
|
|
|
|
2021-01-15 14:45:37 +00:00
|
|
|
structuredExtraConfig = lib.mkMerge [
|
|
|
|
(import ./mptcp-config.nix { inherit lib; })
|
2019-06-24 03:58:07 +01:00
|
|
|
structuredExtraConfig
|
|
|
|
];
|
|
|
|
|
|
|
|
} // args)
|