cie-middleware-linux: pull upstream gcc-13 build fix

Without the change build against `gcc-13` fails as
https://hydra.nixos.org/build/247556526:

    ../pkcs11/src/LOGGER/Logger.h:74:15: error: 'uint8_t' has not been declared
       74 |   void buffer(uint8_t* buff, size_t buff_size) throw();
          |               ^~~~~~~
This commit is contained in:
Sergei Trofimovich 2024-02-03 16:15:24 +00:00
parent 3efc6ce7e4
commit 689f7f0061

View File

@ -1,6 +1,7 @@
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
, makeWrapper
, strip-nondeterminism
, meson
@ -92,6 +93,15 @@ stdenv.mkDerivation {
libxml2
];
patches = [
# Fix gcc-13 build by adding missing include.
(fetchpatch {
name = "gcc-13.patch";
url = "https://github.com/M0Rf30/cie-middleware-linux/commit/1da1196152f7a3bbe92ba3ce993ebb6785ff049e.patch";
hash = "sha256-aM23A1ZX8kebgX6RXVS78SEa+to93glUmIYO+lfUzfg=";
})
];
postPatch = ''
# substitute the cieid command with this $out/bin/cieid
substituteInPlace libs/pkcs11/src/CSP/AbilitaCIE.cpp \