Skip to content

Commit

Permalink
Merge pull request NixOS#261251 from trofi/nxpmicro-mfgtools-gcc-13-fix
Browse files Browse the repository at this point in the history
nxpmicro-mfgtools: pull upstream fix for gcc-13
  • Loading branch information
marsam authored Oct 26, 2023
2 parents c0e2004 + 945337f commit 8055e67
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkgs/development/tools/misc/nxpmicro-mfgtools/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ lib, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, pkg-config
, bzip2
Expand All @@ -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 ];
Expand Down

0 comments on commit 8055e67

Please sign in to comment.