nixpkgs/pkgs/by-name/na
Alexandros Liarokapis a25f62d3df nanopb: 0.4.6 -> 0.4.8
This commit:
- Bumps the nanopb version
- Adds all runtime configuration options
- Implements proper cross-compilation support which is the main use-case of the library.
- Uses newer `finalAttrs` form of `mkDerivation` to allow for easier attribute overrides.

The cross-compilation support is achieved by splitting the package into two sub-packages
consisting of the build-time generator and the runtime library.

Nanopb explicitely supports this by providing specialized `GENERATOR` and
`RUNTIME` CMake configuration options.

The top-level package uses `propagatedNativeBuildInputs` and `propagatedBuildInputs` to propagate
the sub-packages and also adds convenient symlinks to make certain use cases easier.

== GENERATOR ==

The generator is a mostly ready-to-be-packaged python module tree.
We patch the library to also include the missing `__init__.py` and we
also fix the `PYTHON_INSTDIR` variable to follow best practice and to
prevent the library from attempting to install to a global directory.

We package the python module using `buildPythonPackage` and internally
override python in order to wrap the `nanopb_generator.py` executable.

We do *not* wrap `nanob_generator.py` due to it also being imported directly from python when
used through `protoc-gen-nanopb`.

== RUNTIME ==

The runtime is a simple library that consists of the common
functionality among generated headers/sources.

It is configured through `preprocessor definitions` and consumer projects *must*
be compiled with the same definitions.

This is currently achieved by exposing all configuration options through the top-level overrides and
patching the CMakeLists.txt so that the definitions are added to the to-be-installed
CMake targets as PUBLIC properties.

(cherry picked from commit e36b4564d2)
2024-06-27 19:14:27 +00:00
..
namespace-cli namespace-cli: 0.0.369 -> 0.0.371 2024-05-18 15:17:12 +00:00
nanoboyadvance nanoboyadvance: init at 1.8.1 2024-04-03 17:37:58 +02:00
nanopb nanopb: 0.4.6 -> 0.4.8 2024-06-27 19:14:27 +00:00
naps2 naps2: mark as broken on aarch64 2024-04-07 11:02:32 +03:00
narsil treewide: add meta.mainProgram to packages with a single binary 2024-03-19 03:14:51 +01:00
nautilus-open-in-blackbox nautilus-open-in-blackbox: init at 0.1.1 2023-12-17 10:13:13 +05:30
navidrome navidrome: 0.52.0 -> 0.52.5 2024-05-18 04:32:19 +00:00
nawk nawk: 20240311 -> 20240422 2024-04-22 09:25:57 +02:00