···11+# Resolves the compilation issue reported at https://github.com/NixOS/nixpkgs/pull/180681#issuecomment-1192304711
22+# An identical issue was previously reported in Gentoo: https://bugs.gentoo.org/723186
33+# This patch is taken from the solution of Alfredo Tupone (https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24688d64544b43f2c14be54531ad8764419dde09)
44+--- a/lgmon3/src/cnijlgmon3.c 2022-07-22 12:44:32.194641628 +0100
55++++ b/lgmon3/src/cnijlgmon3.c 2022-07-22 12:43:53.954817724 +0100
66+@@ -55,7 +55,7 @@
77+ int (*GET_STATUS)(char *, int, int *, int * , char *);
88+ int (*GET_STATUS2)(char *, int, char *, int *, int * , char *, char *);
99+ int (*GET_STATUS2_MAINTENANCE)(char *, int, char *, int *, int * , char *, char *);
1010+-int (*GET_PROTOCOL)(char *, size_t);
1111++static int (*GET_PROTOCOL)(char *, size_t);
1212+1313+1414+ int main(int argc, char *argv[])
+3-5
pkgs/tools/misc/fzf/default.nix
···2233buildGoModule rec {
44 pname = "fzf";
55- version = "0.30.0";
55+ version = "0.31.0";
6677 src = fetchFromGitHub {
88 owner = "junegunn";
99 repo = pname;
1010 rev = version;
1111- sha256 = "sha256-7E6fj/Sjew+zz+iMFkiSJjVn2rymKRvZtEJZH65INxk=";
1111+ sha256 = "sha256-HKwf/ogNx+jCNSVHI8rt6WYRbuyT18V4nnMyZ6TmwVQ=";
1212 };
13131414- vendorSha256 = "sha256-omvCzM5kH3nAE57S33NV0OFRJmU+Ty7hhriaG/Dc0o0=";
1414+ vendorSha256 = "sha256-3ry93xV3KKtFoFGt2yxzMd4jx3QG2+8TBrEEywj7HPQ=";
15151616 outputs = [ "out" "man" ];
1717···34343535 # Has a sneaky dependency on perl
3636 # Include first args to make sure we're patching the right thing
3737- substituteInPlace shell/key-bindings.zsh \
3838- --replace " perl -ne " " ${perl}/bin/perl -ne "
3937 substituteInPlace shell/key-bindings.bash \
4038 --replace " perl -n " " ${perl}/bin/perl -n "
4139 '';