Skip to content

Commit

Permalink
urbackup-client: fix gcc-13 build failure
Browse files Browse the repository at this point in the history
Without the change build fails on` master as
https://hydra.nixos.org/build/249116447:

    blockalign_src/crc.cpp: In function 'bool cryptopp_crc::IsAlignedOn(const void*, unsigned int)':
    blockalign_src/crc.cpp:191:23: error: 'uintptr_t' does not name a type
      191 |                 const uintptr_t x = reinterpret_cast<uintptr_t>(ptr);
          |                       ^~~~~~~~~
  • Loading branch information
trofi committed Feb 11, 2024
1 parent 43f6f4e commit 4de07c1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/applications/backup/urbackup-client/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ stdenv.mkDerivation rec {
sha256 = "sha256-n0/NVClZz6ANgEdPCtdZxsEvllIl32vwDjC2nq5R8Z4=";
};

postPatch = ''
find | fgrep crc.cpp
# Fix gcc-13 build failures due to missing includes
sed -e '1i #include <cstdint>' -i \
blockalign_src/crc.cpp
'';

buildInputs = [
wxGTK32
zlib
Expand Down

0 comments on commit 4de07c1

Please sign in to comment.