gnuradio3_8Packages.grnet: fix compilation on darwin

This commit is contained in:
Jiajie Chen 2022-10-25 23:17:41 +08:00
parent fffa532feb
commit 40ebb33f6b

View File

@ -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