Skip to content

Commit

Permalink
zeroad: fix build with new gcc and libxml
Browse files Browse the repository at this point in the history
Fixes #280611.
  • Loading branch information
raphaelr committed Jan 13, 2024
1 parent 6023efb commit 1d7100a
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion pkgs/games/0ad/game.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,24 @@ stdenv.mkDerivation rec {
"-L${nvidia-texture-tools.lib}/lib/static"
];

patches = [ ./rootdir_env.patch ];
patches = [
./rootdir_env.patch

# Fix build with libxml v2.12
# FIXME: Remove with next package update
(fetchpatch {
name = "libxml-2.12-fix.patch";
url = "https://github.com/0ad/0ad/commit/d242631245edb66816ef9960bdb2c61b68e56cec.patch";
hash = "sha256-Ik8ThkewB7wyTPTI7Y6k88SqpWUulXK698tevfSBr6I=";
})
# Fix build with GCC 13
# FIXME: Remove with next package update
(fetchpatch {
name = "gcc-13-fix.patch";
url = "https://github.com/0ad/0ad/commit/093e1eb23519ab4a4633a999a555a58e4fd5343e.patch";
hash = "sha256-NuWO64narU1JID/F3cj7lJKjo96XR7gSW0w8I3/hhuw=";
})
];

configurePhase = ''
# Delete shipped libraries which we don't need.
Expand Down

0 comments on commit 1d7100a

Please sign in to comment.