From 11115486857e48ab6f85ca6a09f766d7fc6a6fb5 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Tue, 17 Dec 2024 11:17:14 +0200 Subject: [PATCH] gnuradio: fix tests with an upstream patch for numpy_2 --- pkgs/applications/radio/gnuradio/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/applications/radio/gnuradio/default.nix b/pkgs/applications/radio/gnuradio/default.nix index 05d4e4cdc279..8b6d319d6578 100644 --- a/pkgs/applications/radio/gnuradio/default.nix +++ b/pkgs/applications/radio/gnuradio/default.nix @@ -1,5 +1,6 @@ { lib, stdenv , fetchFromGitHub +, fetchpatch , cmake # Remove gcc and python references , removeReferencesTo @@ -292,6 +293,12 @@ stdenv.mkDerivation (finalAttrs: (shared // { patches = [ # Not accepted upstream, see https://github.com/gnuradio/gnuradio/pull/5227 ./modtool-newmod-permissions.patch + # https://github.com/gnuradio/gnuradio/issues/7458 + (fetchpatch { + name = "gnuradio-numpy_2-compatibility.patch"; + url = "https://github.com/gnuradio/gnuradio/commit/8fbc5eb4b7214a4cb029ccae97205a85d49bdd48.patch"; + hash = "sha256-xYvjlyZ/Bcn23gT3EOee/GhkXzdpA+q33LgURVWOUQI="; + }) ]; passthru = shared.passthru // { # Deps that are potentially overridden and are used inside GR plugins - the same version must