···36 now point to an externally wrapped by default derivations, that allow you to
37 also add `extraPythonPackages` to the Python interpreter used by GNURadio.
38 Missing environmental variables needed for operational GUI were also added
39- (<link xlink:href="https://github.com/NixOS/nixpkgs/issues/75478">#7547</link>).
000000000040 </para>
41 </listitem>
42 <listitem>
···36 now point to an externally wrapped by default derivations, that allow you to
37 also add `extraPythonPackages` to the Python interpreter used by GNURadio.
38 Missing environmental variables needed for operational GUI were also added
39+ (<link xlink:href="https://github.com/NixOS/nixpkgs/issues/75478">#75478</link>).
40+ </para>
41+ </listitem>
42+ <listitem>
43+ <para>
44+ <link xlink:href="https://www.gnuradio.org/">GNURadio</link> has a
45+ <code>pkgs</code> attribute set, and there's a <code>gnuradio.callPackage</code>
46+ function that extends <code>pkgs</code> with a <code>mkDerivation</code>, and a
47+ <code>mkDerivationWith</code>, like Qt5. Now all <code>gnuradio.pkgs</code> are
48+ defined with <code>gnuradio.callPackage</code> and some packages that depend
49+ on gnuradio are defined with this as well.
50 </para>
51 </listitem>
52 <listitem>
···1+{ lib
2+, unwrapped
3+}:
4+5+mkDerivation:
6+7+args:
8+9+# Check if it's supposed to not get built for the current gnuradio version
10+if (builtins.hasAttr "disabledForGRafter" args) &&
11+(lib.versionAtLeast unwrapped.versionAttr.major args.disabledForGRafter) then
12+let name = args.name or "${args.pname}"; in
13+throw "Package ${name} is incompatible with GNURadio ${unwrapped.versionAttr.major}"
14+else
15+16+let
17+ args_ = {
18+ enableParallelBuilding = args.enableParallelBuilding or true;
19+ nativeBuildInputs = (args.nativeBuildInputs or []);
20+ # We add gnuradio and volk itself by default - most gnuradio based packages
21+ # will not consider it a depenency worth mentioning and it will almost
22+ # always be needed
23+ buildInputs = (args.buildInputs or []) ++ [ unwrapped unwrapped.volk ];
24+ };
25+in mkDerivation (args // args_)