It's worth to think about setting -DDESKTOP_APP_USE_PACKAGED_FONTS=OFF
since it's impossible to install fonts as dependencies of packages with
Nix and tdesktop's widgets are developed only with Open Sans in mind (it
has a lot of hardcoded values and wide fonts like DejaVu may
even go out of widgets' bounds)
https://github.com/NixOS/nixpkgs/pull/130827#issuecomment-885212649
It's removed because:
1. It's an internal library which is only used by telegram itself, and
it's fine to use its bundled source in telegram.
2. It's forced to produce static library, is very fast to build
(less than 1min) and is quite small (<2 MiB).
3. Reduce extra maintenance work and have almost no other drawback.
- Build shared library to keep binary small.
- Prefer system-wide libraries instead of bundled ones.
- `abseil-cpp` (absl) is required for downstream build and appears in
output cmake file. So it's added to `propagatedBuildInputs`.
Failing Hydra build: https://hydra.nixos.org/build/148285785
The underlying issue is `flask-admin` not working with newer versions of
`SQLAlchemy` and `SQLAlchemy-Utils`[1].
I decided to only fix `buku` now since this is the package I wanted to
take care of initially. Also, multiple versions of python packages - a
measure that would be necessary for `flask-admin` - are generally
discouraged[2].
[1] 1.5.8 works with `SQLAlchemy`, but is broken with `SQLAlchemy-Utils`
at 0.37, see also https://github.com/flask-admin/flask-admin/issues/2113
[2] https://github.com/NixOS/nixpkgs/pull/127707
Required so it still works with the latest changes to the derivation.
Does not make octoprint build, this would require further overrides
around the flask/werkzeug ecosystem.