···3636 now point to an externally wrapped by default derivations, that allow you to
3737 also add `extraPythonPackages` to the Python interpreter used by GNURadio.
3838 Missing environmental variables needed for operational GUI were also added
3939- (<link xlink:href="https://github.com/NixOS/nixpkgs/issues/75478">#7547</link>).
3939+ (<link xlink:href="https://github.com/NixOS/nixpkgs/issues/75478">#75478</link>).
4040+ </para>
4141+ </listitem>
4242+ <listitem>
4343+ <para>
4444+ <link xlink:href="https://www.gnuradio.org/">GNURadio</link> has a
4545+ <code>pkgs</code> attribute set, and there's a <code>gnuradio.callPackage</code>
4646+ function that extends <code>pkgs</code> with a <code>mkDerivation</code>, and a
4747+ <code>mkDerivationWith</code>, like Qt5. Now all <code>gnuradio.pkgs</code> are
4848+ defined with <code>gnuradio.callPackage</code> and some packages that depend
4949+ on gnuradio are defined with this as well.
4050 </para>
4151 </listitem>
4252 <listitem>
···5565 <xref linkend="opt-services.privoxy.settings"/>
5666 (See <link xlink:href="https://github.com/NixOS/rfcs/blob/master/rfcs/0042-config-option.md">RFC 0042</link>
5767 for the motivation).
6868+ </para>
6969+ </listitem>
7070+ <listitem>
7171+ <para>
7272+ <link xlink:href="https://kodi.tv/">Kodi</link> has been updated to version 19.0 "Matrix". See
7373+ the <link xlink:href="https://kodi.tv/article/kodi-190-matrix-release">announcement</link> for
7474+ further details.
5875 </para>
5976 </listitem>
6077 </itemizedlist>
···575592 have been removed. You should set your own according to the
576593 <link xlink:href="https://kafka.apache.org/documentation/#java">upstream documentation</link>
577594 for your Kafka version.
595595+ </para>
596596+ </listitem>
597597+ <listitem>
598598+ <para>
599599+ The <package>kodi</package> package has been modified to allow concise addon management. Consider
600600+ the following configuration from previous releases of NixOS to install <package>kodi</package>,
601601+ including the <package>kodiPackages.inputstream-adaptive</package> and <package>kodiPackages.vfs-sftp</package>
602602+ addons:
603603+604604+ <programlisting>
605605+environment.systemPackages = [
606606+ pkgs.kodi
607607+];
608608+609609+nixpkgs.config.kodi = {
610610+ enableInputStreamAdaptive = true;
611611+ enableVFSSFTP = true;
612612+};
613613+ </programlisting>
614614+615615+ All Kodi <literal>config</literal> flags have been removed, and as a result the above configuration
616616+ should now be written as:
617617+618618+ <programlisting>
619619+environment.systemPackages = [
620620+ (pkgs.kodi.withPackages (p: with p; [
621621+ inputstream-adaptive
622622+ vfs-sftp
623623+ ]))
624624+];
625625+ </programlisting>
578626 </para>
579627 </listitem>
580628 </itemizedlist>
···11+{ lib
22+, unwrapped
33+}:
44+55+mkDerivation:
66+77+args:
88+99+# Check if it's supposed to not get built for the current gnuradio version
1010+if (builtins.hasAttr "disabledForGRafter" args) &&
1111+(lib.versionAtLeast unwrapped.versionAttr.major args.disabledForGRafter) then
1212+let name = args.name or "${args.pname}"; in
1313+throw "Package ${name} is incompatible with GNURadio ${unwrapped.versionAttr.major}"
1414+else
1515+1616+let
1717+ args_ = {
1818+ enableParallelBuilding = args.enableParallelBuilding or true;
1919+ nativeBuildInputs = (args.nativeBuildInputs or []);
2020+ # We add gnuradio and volk itself by default - most gnuradio based packages
2121+ # will not consider it a depenency worth mentioning and it will almost
2222+ # always be needed
2323+ buildInputs = (args.buildInputs or []) ++ [ unwrapped unwrapped.volk ];
2424+ };
2525+in mkDerivation (args // args_)