Merge pull request #261251 from trofi/nxpmicro-mfgtools-gcc-13-fix

nxpmicro-mfgtools: pull upstream fix for gcc-13
This commit is contained in:
Mario Rodas 2023-10-25 21:04:15 -05:00 committed by GitHub
commit 8055e6795e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
{ lib, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, pkg-config
, bzip2
@ -21,6 +22,16 @@ stdenv.mkDerivation rec {
sha256 = "sha256-f9Nt303xXZzLSu3GtOEpyaL91WVFUmKO7mxi8UNX3go=";
};
patches = [
# Backport upstream fix for gcc-13 support:
# https://github.com/nxp-imx/mfgtools/pull/360
(fetchpatch {
name = "gcc-13.patch";
url = "https://github.com/nxp-imx/mfgtools/commit/24fd043225903247f71ac10666d820277c0b10b1.patch";
hash = "sha256-P7n6+Tiz10GIQ7QOd/qQ3BI7Wo5/66b0EwjFSpOUSJg=";
})
];
nativeBuildInputs = [ cmake pkg-config installShellFiles ];
buildInputs = [ bzip2 libusb1 libzip openssl zstd ];