Build with the harfbuzz shared library from nixpkgs. This is well
supported by upstream through a cargo feature flag.
Previously the build uses a vendored harfbuzz housed in a git submodule.
This can be inconvenient when developing the package. This commit
eliminate the need to fetch git submodules.
Also, replace `builtins.toFile` with `pkgs.writeText` because the former
blocks the evaluation loop just like an import from derivation (IFD).
Although it is _technically_ not an IFD, it has very similar effects,
and thus we should prefer the nixpkgs `pkgs.writeText` instead.
We have to switch to `fetchCrate` because upstream forgot to rebuild
their `Cargo.lock` after bumping the version in `Cargo.toml` by the time
they tagged a release.
Without the change `texlive.bin.dvisvgm` fails the build on
`staging-next` as:
Character.hpp:33:17: error: 'uint32_t' does not name a type
33 | uint32_t number () const {return _number;}
| ^~~~~~~~
Character.hpp:1:1: note: 'uint32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
+++ |+#include <cstdint>
The test requires internet access to fetch tectonic's web bundle
on demand. This is achieved by abusing a fixed-output derivation,
which is capable of internet access.
The `tectonic.outPath` is included in the test package name. This
ensures that it is always triggered for rebuild when the main
derivation changes.
Co-authored-by: Doron Behar <doron.behar@gmail.com>
Conflicts:
- pkgs/development/python-modules/boto3-stubs/default.nix
- pkgs/development/python-modules/openllm-core/default.nix
Between 0.4.22 → 0.4.34 (a82245bd3d)
and 0.4.22 -> 0.4.41 (72c55ce6a6)
Does not build, not pre-merge either.
The `tectonic` attribute is redefined to be a wrapper with a compatible
version of biber, provided by `biber-for-tectonic`.
The wrapper is partially recovered from a previous nixpkgs commit:
5aa8e9f0f9
Also:
- Remove unneeded makeBinaryWrapper input in `tectonic-unwrapped`.
- Add @bryango as a maintainer of both `tectonic-unwrapped` and
`tectonic`.
Co-authored-by: Doron Behar <doron.behar@gmail.com>
The `tectonic` package depends on a version of `biber` that is generally
different from the one in the nixpkgs `texlive` bundle. This package
provides an override of biber suitable for use with tectonic.
For biber<=2.17 on perl>=5.36.0 a patch is needed.
This is recovered from a previous nixpkgs commit:
c784cdbf6b
Co-authored-by: Mauricio Collares <mauricio@collares.org>
Co-authored-by: Doron Behar <doron.behar@gmail.com>