Skip to content

Commit

Permalink
Merge pull request NixOS#288011 from trofi/urbackup-client-gcc-13-fix
Browse files Browse the repository at this point in the history
urbackup-client: fix `gcc-13` build failure
  • Loading branch information
marsam authored Feb 13, 2024
2 parents 1d0ac1b + 4de07c1 commit dd7b7a8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 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 All @@ -25,6 +32,8 @@ stdenv.mkDerivation rec {
"--enable-embedded-cryptopp"
];

enableParallelBuilding = true;

meta = with lib; {
description = "An easy to setup Open Source client/server backup system";
longDescription = "An easy to setup Open Source client/server backup system, that through a combination of image and file backups accomplishes both data safety and a fast restoration time";
Expand Down

0 comments on commit dd7b7a8

Please sign in to comment.