From 17abbff09c2f53d64957db6b245b95d07a7d775f Mon Sep 17 00:00:00 2001 From: Andrea Ciceri Date: Mon, 9 Feb 2026 10:14:46 +0100 Subject: [PATCH] dump1090-fa: fix build with GCC 15 Apply upstream PR as patch: https://github.com/flightaware/dump1090/pull/261 Notice that there are multiple PRs fixing this same issue. --- pkgs/by-name/du/dump1090-fa/package.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/du/dump1090-fa/package.nix b/pkgs/by-name/du/dump1090-fa/package.nix index 681db8400e7e..71fc34cd2ca7 100644 --- a/pkgs/by-name/du/dump1090-fa/package.nix +++ b/pkgs/by-name/du/dump1090-fa/package.nix @@ -2,7 +2,7 @@ lib, stdenv, fetchFromGitHub, - fetchpatch, + fetchpatch2, pkg-config, hackrf, libbladeRF, @@ -24,6 +24,14 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-kTJ8FMugBRJaxWas/jEj4E5TmVnNpNdhq4r2YFFwgTU="; }; + patches = [ + # Fix compilation with GCC 15: https://github.com/flightaware/dump1090/pull/261 + (fetchpatch2 { + url = "https://github.com/flightaware/dump1090/commit/93be1da123215e8ac15a0deaffedd480e8899f77.patch"; + hash = "sha256-ehpMfLLEh1pMgvFAPg1JHo8XRlta+GvCIZsSXVPISLc="; + }) + ]; + nativeBuildInputs = [ pkg-config ]; buildInputs = [