diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2024-02-11 11:46:11 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2024-02-11 11:46:11 +0000 |
commit | 4de07c15155fa4bd5859e7c34c702244c787ebfa (patch) | |
tree | 27ceb26e3c11647e0d9ae21c7e3c862a2b5bae09 /pkgs/applications/backup/urbackup-client | |
parent | 43f6f4e46f5e3bcf28239b4539a751070b8e5fe9 (diff) |
urbackup-client: fix `gcc-13` build failure
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); | ^~~~~~~~~
Diffstat (limited to 'pkgs/applications/backup/urbackup-client')
-rw-r--r-- | pkgs/applications/backup/urbackup-client/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/applications/backup/urbackup-client/default.nix b/pkgs/applications/backup/urbackup-client/default.nix index 64acd441c4424..ed5f59e2c41ce 100644 --- a/pkgs/applications/backup/urbackup-client/default.nix +++ b/pkgs/applications/backup/urbackup-client/default.nix @@ -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 |