From 2d2cd15a83f4e55a05ce820f7835f39582f6da70 Mon Sep 17 00:00:00 2001 From: Marcin Serwin Date: Sat, 7 Feb 2026 00:55:39 +0100 Subject: [PATCH] gnujump: fix build with gcc15 Tracking: https://github.com/NixOS/nixpkgs/issues/475479 Signed-off-by: Marcin Serwin --- pkgs/by-name/gn/gnujump/fix-c23-prototypes.patch | 16 ++++++++++++++++ pkgs/by-name/gn/gnujump/package.nix | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 pkgs/by-name/gn/gnujump/fix-c23-prototypes.patch diff --git a/pkgs/by-name/gn/gnujump/fix-c23-prototypes.patch b/pkgs/by-name/gn/gnujump/fix-c23-prototypes.patch new file mode 100644 index 000000000000..ef5c36c0e0a3 --- /dev/null +++ b/pkgs/by-name/gn/gnujump/fix-c23-prototypes.patch @@ -0,0 +1,16 @@ +diff --git a/src/game.h b/src/game.h +index fc75acc..fd511a8 100644 +--- a/src/game.h ++++ b/src/game.h +@@ -207,9 +207,9 @@ void continueTimer (L_timer * time); + + int yesNoQuestion (data_t * gfx, game_t * game, char *text); + +-int updateInput (); ++int updateInput (game_t * game); + +-void freeGame (); ++void freeGame (game_t * game); + + void drawGame (data_t * gfx, game_t * game); + diff --git a/pkgs/by-name/gn/gnujump/package.nix b/pkgs/by-name/gn/gnujump/package.nix index db5765e101a4..34b4522f06cf 100644 --- a/pkgs/by-name/gn/gnujump/package.nix +++ b/pkgs/by-name/gn/gnujump/package.nix @@ -28,6 +28,8 @@ stdenv.mkDerivation (finalAttrs: { SDL_mixer ]; + patches = [ ./fix-c23-prototypes.patch ]; + env.NIX_LDFLAGS = "-lm"; desktopItems = [