cm256cc: pull fix pending upstream inclusion for gcc-13

Without the change build fails on `gcc-13` as:

$ nix build --impure --expr 'with import ./. {}; cm256cc.override { stdenv = gcc13Stdenv; }' -L
...
/build/source/unit_test/data.h:37:9: error: 'uint16_t' does not name a type
37 | uint16_t i;
| ^~~~~~~~
/build/source/unit_test/data.h:33:1: note: 'uint16_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
32 | #include <string.h>
+++ |+#include <cstdint>

+11 -1
+11 -1
pkgs/development/libraries/cm256cc/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake, boost } : 2 3 stdenv.mkDerivation rec { 4 pname = "cm256cc"; ··· 10 rev = "v${version}"; 11 sha256 = "sha256-T7ZUVVYGdzAialse//MoqWCVNBpbZvzWMAKc0cw7O9k="; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 buildInputs = [ boost ];
··· 1 + { lib, stdenv, fetchFromGitHub, fetchpatch, cmake, boost } : 2 3 stdenv.mkDerivation rec { 4 pname = "cm256cc"; ··· 10 rev = "v${version}"; 11 sha256 = "sha256-T7ZUVVYGdzAialse//MoqWCVNBpbZvzWMAKc0cw7O9k="; 12 }; 13 + 14 + patches = [ 15 + # Pull fix pending upstream inclusion for gcc-13 support: 16 + # https://github.com/f4exb/cm256cc/pull/18 17 + (fetchpatch { 18 + name = "gcc-13.patch"; 19 + url = "https://github.com/f4exb/cm256cc/commit/a7f142bcdae8be1c646d67176ba0ba0f7e8dcd68.patch"; 20 + hash = "sha256-J7bm44sqnGsdPhJxQrE8LDxZ6tkTzLslHQnnKmtgrtM="; 21 + }) 22 + ]; 23 24 nativeBuildInputs = [ cmake ]; 25 buildInputs = [ boost ];