···6666 <literal>enableParallelBuilding=false</literal>.
6767 </para>
6868 </listitem>
6969+ <listitem>
7070+ <para>
7171+ <literal>pkgs.claws-mail-gtk2</literal>, representing Claws
7272+ Mail’s older release version three, was removed in order to
7373+ get rid of Python 2. Please switch to
7474+ <literal>claws-mail</literal>, which is Claws Mail’s latest
7575+ release based on GTK+3 and Python 3.
7676+ </para>
7777+ </listitem>
6978 </itemizedlist>
7079 </section>
7180 <section xml:id="sec-release-22.05-notable-changes">
+3
nixos/doc/manual/release-notes/rl-2205.section.md
···29293030- The `wafHook` hook now honors `NIX_BUILD_CORES` when `enableParallelBuilding` is not set explicitly. Packages can restore the old behaviour by setting `enableParallelBuilding=false`.
31313232+- `pkgs.claws-mail-gtk2`, representing Claws Mail's older release version three, was removed in order to get rid of Python 2.
3333+ Please switch to `claws-mail`, which is Claws Mail's latest release based on GTK+3 and Python 3.
3434+3235## Other Notable Changes {#sec-release-22.05-notable-changes}
···1616 "hledger-check-fancyassertions"
1717 {
1818 libraries = with haskellPackages; [
1919- base base-compat base-compat-batteries filepath hledger-lib_1_23
1919+ base base-compat base-compat-batteries filepath hledger-lib_1_24
2020 megaparsec microlens optparse-applicative string-qq text time
2121 transformers
2222 ];
+2-2
pkgs/applications/video/kodi/unwrapped.nix
···198198 '' + lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
199199 # Need these tools on the build system when cross compiling,
200200 # hacky, but have found no other way.
201201- CXX=${stdenv.cc.targetPrefix}c++ LD=ld make -C tools/depends/native/JsonSchemaBuilder
201201+ CXX=$CXX_FOR_BUILD LD=ld make -C tools/depends/native/JsonSchemaBuilder
202202 cmakeFlags+=" -DWITH_JSONSCHEMABUILDER=$PWD/tools/depends/native/JsonSchemaBuilder/bin"
203203204204- CXX=${stdenv.cc.targetPrefix}c++ LD=ld make EXTRA_CONFIGURE= -C tools/depends/native/TexturePacker
204204+ CXX=$CXX_FOR_BUILD LD=ld make EXTRA_CONFIGURE= -C tools/depends/native/TexturePacker
205205 cmakeFlags+=" -DWITH_TEXTUREPACKER=$PWD/tools/depends/native/TexturePacker/bin"
206206 '';
207207
···309309 with open(path, 'r') as f:
310310 text = f.read()
311311312312- # Determine pname.
313313- pname = _get_unique_value('pname', text)
312312+ # Determine pname. Many files have more than one pname
313313+ pnames = _get_values('pname', text)
314314315315 # Determine version.
316316 version = _get_unique_value('version', text)
···320320321321 extension = _determine_extension(text, fetcher)
322322323323- new_version, new_sha256, prefix = FETCHERS[fetcher](pname, extension, version, target)
323323+ # Attempt a fetch using each pname, e.g. backports-zoneinfo vs backports.zoneinfo
324324+ successful_fetch = False
325325+ for pname in pnames:
326326+ try:
327327+ new_version, new_sha256, prefix = FETCHERS[fetcher](pname, extension, version, target)
328328+ successful_fetch = True
329329+ break
330330+ except ValueError:
331331+ continue
332332+333333+ if not successful_fetch:
334334+ raise ValueError(f"Unable to find correct package using these pnames: {pnames}")
324335325336 if new_version == version:
326337 logging.info("Path {}: no update available for {}.".format(path, pname))
···331342 raise ValueError("no file available for {}.".format(pname))
332343333344 text = _replace_value('version', new_version, text)
334334- text = _replace_value('sha256', new_sha256, text)
345345+346346+ # fetchers can specify a sha256, or a sri hash
347347+ try:
348348+ text = _replace_value('sha256', new_sha256, text)
349349+ except ValueError:
350350+ # hashes from pypi are 16-bit encoded sha256's, need translate to an sri hash if used with "hash"
351351+ sri_hash = subprocess.check_output(["nix", "hash", "to-sri", "--type", "sha256", new_sha256]).decode('utf-8').strip()
352352+ text = _replace_value('hash', sri_hash, text)
353353+335354 if fetcher == 'fetchFromGitHub':
336355 text = _replace_value('rev', f"{prefix}${{version}}", text)
337356 # incase there's no prefix, just rewrite without interpolation