Skip to content

Commit

Permalink
ecwolf: fix build with gcc-14
Browse files Browse the repository at this point in the history
  • Loading branch information
xokdvium committed Dec 25, 2024
1 parent f6a2e6a commit e131111
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkgs/by-name/ec/ecwolf/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
writers,
python3Packages,
nix-update,
fetchpatch,
}:

stdenv.mkDerivation rec {
Expand All @@ -28,6 +29,15 @@ stdenv.mkDerivation rec {
sha256 = "V2pSP8i20zB50WtUMujzij+ISSupdQQ/oCYYrOaTU1g=";
};

patches = [
# Fixes build with gcc >= 14. Shouldn't be needed for ecwolf versions > 1.4.1.
(fetchpatch {
name = "tmemory.h-const-correctness.patch";
url = "https://bitbucket.org/ecwolf/ecwolf/commits/400aaf96a36a14ab8eab18a670ba6439046f3bb0/raw";
hash = "sha256-2YwHEctBPyprs0DVsazimGEgmiCba24zh2dFfw9tOnU=";
})
];

nativeBuildInputs = [
cmake
pkg-config
Expand Down

0 comments on commit e131111

Please sign in to comment.