From ea103a02af2bdd57a9ee4e54fd4d83ee15bd0578 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Fri, 22 Nov 2024 13:37:10 +0000 Subject: [PATCH] libstroke: fix build with gcc14 > stroke.c:267:5: error: implicit declaration of function 'strcpy' fix by including `string.h`. code seems abandoned but is still used by a handful of packages. --- pkgs/by-name/li/libstroke/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/li/libstroke/package.nix b/pkgs/by-name/li/libstroke/package.nix index 2231adbf80cc8..d3f44a0381058 100644 --- a/pkgs/by-name/li/libstroke/package.nix +++ b/pkgs/by-name/li/libstroke/package.nix @@ -15,6 +15,10 @@ stdenv.mkDerivation rec { sha256 = "0bbpqzsqh9zrc6cg62f6vp1p4dzvv37blsd0gdlzdskgwvyzba8d"; }; + postPatch = '' + sed -i 1i'#include ' libstroke/stroke.c + ''; + nativeBuildInputs = [ automake autoconf ]; buildInputs = [ libX11 ];