21 # Each GR major version requires us to pull a specific git revision of the repository
24 # Last git revision from the `maint-3.7` branch:
25 # https://github.com/ghostop14/gr-grnet/tree/maint-3.7
26 name = "unstable-2019-08-06";
27 gitHash = "beb1cd75d006a982c0a9536e923800c5a0575451";
30 # Last git revision from the `maint-3.8` branch:
31 # https://github.com/ghostop14/gr-grnet/tree/maint-3.8
32 name = "unstable-2020-11-20";
33 gitHash = "b02016043b67a15f27134a4f0b0d43f5d1b9ed6d";
36 # This revision is taken from the `master` branch.
37 name = "unstable-2020-12-30";
38 gitHash = "e6dfd140cfda715de9bcef4c1116fcacfeb0c606";
40 }.${gnuradio.versionAttr.major};
41 src = fetchFromGitHub {
44 rev = "${version.gitHash}";
46 "3.7" = "LLQ0Jf0Oapecu9gj4IgxOdK7O/OSbHnwNk000GlODxk=";
47 "3.8" = "vO8l8nV1/yEQf7pKqBbzIg4KkyCyWu+OkKgISyI3PaQ=";
48 "3.9" = "NsL7HCOQmGyexzpH2qbzv8Bq4bsfiDTNEUi96QDOA/g=";
49 }.${gnuradio.versionAttr.major};
54 version = version.name;
56 disabledForGRafter = "3.10";
59 # Use cross platform struct ip instead of iphdr
60 # https://github.com/ghostop14/gr-grnet/pull/19
62 name = "fix-compilation-on-darwin.patch";
63 url = "https://github.com/ghostop14/gr-grnet/commit/52c07daa9ba595b76ffa5dd90c0c96694d95d140.patch";
64 sha256 = "sha256-1gJaYLIn09blOhALMfBPROt5YBXaosG41Vsd3+5h518=";
76 ] ++ (if lib.versionAtLeast gnuradio.versionAttr.major "3.9" then with python.pkgs; [
90 description = "GNURadio TCP/UDP source and sink blocks rewritten in C++/Boost";
91 homepage = "https://github.com/ghostop14/gr-grnet";
92 license = licenses.gpl3Plus;
93 maintainers = with maintainers; [ chuangzhu ];
94 platforms = platforms.unix;