diff --git a/nixos/pkgs/twisted.nix b/nixos/pkgs/twisted.nix index 32fb34378dcb287c01f405ef1284921459aaf792..efa56cd0c924880559f554636f7ea5975e8df56e 100644 --- a/nixos/pkgs/twisted.nix +++ b/nixos/pkgs/twisted.nix @@ -1,7 +1,11 @@ { twisted }: twisted.overrideAttrs (old: { - version = old.version + "-0"; prePatch = old.patchPhase; patchPhase = null; + # Add a patch which adds more logging to a namer resolver failure case. The + # NixOS system test harness might be setting up a weird semi-broken system + # that provokes a weird behavior out of getaddrinfo() that Twisted doesn't + # normally handle. The logging can help with debugging this case. We + # should think about upstreaming something related to this. patches = (if old ? "patches" then old.patches else []) ++ [ ./twisted.patch ]; })