From b00133a959ac506d56202473eba39962aeb375ac Mon Sep 17 00:00:00 2001 From: Manuel Frischknecht Date: Sat, 27 Jan 2024 23:09:35 +0000 Subject: [PATCH] djv: fix build issue due to missing `cstdint` include GCC 13 stopped transitively including a couple of headers (including `cstdint`) in various scenarios, which breaks the build of the current release version of `djv`. A fix for this issue has already been merged in master as part of a PR from which Nixpkgs already pulls patches from [1]. As this is the case, I just added the missing commit to the list of patches in order to get the package building again. [1]: https://github.com/darbyjohnston/DJV/pull/477/commits/be0dd90c256f30c0305ff7b180fd932a311e66e5 --- pkgs/applications/graphics/djv/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/graphics/djv/default.nix b/pkgs/applications/graphics/djv/default.nix index 8e36e5b70db1..735807691af7 100644 --- a/pkgs/applications/graphics/djv/default.nix +++ b/pkgs/applications/graphics/djv/default.nix @@ -111,6 +111,11 @@ stdenv.mkDerivation rec { patches = [ # Pull fix ending upstream inclusion for gcc-12+ support: # https://github.com/darbyjohnston/DJV/pull/477 + (fetchpatch { + name = "gcc-13-cstdint-include.patch"; + url = "https://github.com/darbyjohnston/DJV/commit/be0dd90c256f30c0305ff7b180fd932a311e66e5.patch"; + hash = "sha256-x8GAfakhgjBiCKHbfgCukT5iFNad+zqURDJkQr092uk="; + }) (fetchpatch { name = "gcc-11-limits.patch"; url = "https://github.com/darbyjohnston/DJV/commit/0544ffa1a263a6b8e8518b47277de7601b21b4f4.patch";