From 40ebb33f6b757f0a1c26afbbc5b9d94624b28d80 Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Tue, 25 Oct 2022 23:17:41 +0800 Subject: [PATCH] gnuradio3_8Packages.grnet: fix compilation on darwin --- pkgs/development/gnuradio-modules/grnet/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/gnuradio-modules/grnet/default.nix b/pkgs/development/gnuradio-modules/grnet/default.nix index 6e8b72a6565..fc12abd8cfa 100644 --- a/pkgs/development/gnuradio-modules/grnet/default.nix +++ b/pkgs/development/gnuradio-modules/grnet/default.nix @@ -1,6 +1,7 @@ { lib , mkDerivation , fetchFromGitHub +, fetchpatch , gnuradio , cmake , pkg-config @@ -54,6 +55,16 @@ mkDerivation { inherit src; disabledForGRafter = "3.10"; + patches = [ + # Use cross platform struct ip instead of iphdr + # https://github.com/ghostop14/gr-grnet/pull/19 + (fetchpatch { + name = "fix-compilation-on-darwin.patch"; + url = "https://github.com/ghostop14/gr-grnet/commit/52c07daa9ba595b76ffa5dd90c0c96694d95d140.patch"; + sha256 = "sha256-1gJaYLIn09blOhALMfBPROt5YBXaosG41Vsd3+5h518="; + }) + ]; + buildInputs = [ boost log4cpp