From a1503b80b90ba2da1a931ed471f101ad16bb81a8 Mon Sep 17 00:00:00 2001 From: Shogo Takata Date: Mon, 1 Sep 2025 04:35:05 +0900 Subject: [PATCH] zssh: fix build failure Fixes build of zssh The depracated type name "CPPFunction" in readline is replaced with the replacement "rl_completion_func_t". --- pkgs/by-name/zs/zssh/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/zs/zssh/package.nix b/pkgs/by-name/zs/zssh/package.nix index 8d1c933b140a..9e58e7517f0a 100644 --- a/pkgs/by-name/zs/zssh/package.nix +++ b/pkgs/by-name/zs/zssh/package.nix @@ -34,6 +34,9 @@ stdenv.mkDerivation rec { postPatch = '' sed -i 1i'#include ' openpty.c + # readline has renamed the type name + substituteInPlace completion.c \ + --replace-fail CPPFunction rl_completion_func_t ''; # The makefile does not create the directories