···1+# Resolves the compilation issue reported at https://github.com/NixOS/nixpkgs/pull/180681#issuecomment-1192304711
2+# An identical issue was previously reported in Gentoo: https://bugs.gentoo.org/723186
3+# This patch is taken from the solution of Alfredo Tupone (https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24688d64544b43f2c14be54531ad8764419dde09)
4+--- a/lgmon3/src/cnijlgmon3.c 2022-07-22 12:44:32.194641628 +0100
5++++ b/lgmon3/src/cnijlgmon3.c 2022-07-22 12:43:53.954817724 +0100
6+@@ -55,7 +55,7 @@
7+ int (*GET_STATUS)(char *, int, int *, int * , char *);
8+ int (*GET_STATUS2)(char *, int, char *, int *, int * , char *, char *);
9+ int (*GET_STATUS2_MAINTENANCE)(char *, int, char *, int *, int * , char *, char *);
10+-int (*GET_PROTOCOL)(char *, size_t);
11++static int (*GET_PROTOCOL)(char *, size_t);
12+13+14+ int main(int argc, char *argv[])
+3-5
pkgs/tools/misc/fzf/default.nix
···23buildGoModule rec {
4 pname = "fzf";
5- version = "0.30.0";
67 src = fetchFromGitHub {
8 owner = "junegunn";
9 repo = pname;
10 rev = version;
11- sha256 = "sha256-7E6fj/Sjew+zz+iMFkiSJjVn2rymKRvZtEJZH65INxk=";
12 };
1314- vendorSha256 = "sha256-omvCzM5kH3nAE57S33NV0OFRJmU+Ty7hhriaG/Dc0o0=";
1516 outputs = [ "out" "man" ];
17···3435 # Has a sneaky dependency on perl
36 # Include first args to make sure we're patching the right thing
37- substituteInPlace shell/key-bindings.zsh \
38- --replace " perl -ne " " ${perl}/bin/perl -ne "
39 substituteInPlace shell/key-bindings.bash \
40 --replace " perl -n " " ${perl}/bin/perl -n "
41 '';
···23buildGoModule rec {
4 pname = "fzf";
5+ version = "0.31.0";
67 src = fetchFromGitHub {
8 owner = "junegunn";
9 repo = pname;
10 rev = version;
11+ sha256 = "sha256-HKwf/ogNx+jCNSVHI8rt6WYRbuyT18V4nnMyZ6TmwVQ=";
12 };
1314+ vendorSha256 = "sha256-3ry93xV3KKtFoFGt2yxzMd4jx3QG2+8TBrEEywj7HPQ=";
1516 outputs = [ "out" "man" ];
17···3435 # Has a sneaky dependency on perl
36 # Include first args to make sure we're patching the right thing
0037 substituteInPlace shell/key-bindings.bash \
38 --replace " perl -n " " ${perl}/bin/perl -n "
39 '';