nixpkgs/pkgs/top-level
Alexandros Liarokapis e36b4564d2 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.
2024-06-26 22:15:27 +03:00
..
pkg-config
ada-packages.nix
agda-packages.nix
aliases.nix Merge pull request #287036 from srhb/kafka-versions-cleanup 2024-06-26 20:22:49 +02:00
all-packages.nix nanopb: 0.4.6 -> 0.4.8 2024-06-26 22:15:27 +03:00
beam-packages.nix elixir_1_17: init at 1.17.0 2024-06-13 12:24:42 +03:00
by-name-overlay.nix
config.nix
coq-packages.nix
cubocore-packages.nix
cuda-packages.nix
darwin-aliases.nix libauto: remove 2024-05-30 02:03:57 +02:00
darwin-packages.nix
default.nix
dhall-packages.nix
dotnet-packages.nix treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
emacs-packages.nix
emscripten-packages.nix
gnuradio-packages.nix
hare-third-party.nix
haskell-packages.nix haskellPackages.ghcjs-dom: build on js backend of ghc 9.8 2024-06-14 23:02:10 +02:00
haxe-packages.nix
impure.nix
java-packages.nix
kodi-packages.nix kodi-skyvideoitalia: init at 1.0.4 2024-06-21 21:37:44 +02:00
linux-kernels.nix Merge pull request #310778 from wineee/dde23 2024-06-25 09:52:28 +08:00
lua-packages.nix treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
make-tarball.nix pkgs/top-level/make-tarball.nix: avoid hardlinks 2024-06-04 15:11:09 +02:00
metrics.nix
nim-overrides.nix nimOverrides: do not pass final attrset to override funcs 2024-05-30 08:12:39 +00:00
nixpkgs-basic-release-checks.nix release-checks: Remove workaround for 10 year old Nix bug 2024-05-29 02:46:06 -07:00
ocaml-packages.nix ocamlPackages.eqaf: 0.9 → 0.10 2024-06-24 09:46:02 +02:00
octave-packages.nix
packages-config.nix
perl-packages.nix Merge pull request #322211 from NyCodeGHG/update-libvirt 2024-06-25 05:47:13 +02:00
php-packages.nix phpExtensions.intl: icu64 -> icu73 2024-06-21 08:27:45 +02:00
python2-packages.nix
python-aliases.nix Merge pull request #317200 from natsukium/htmllaundry/remove 2024-06-21 23:51:43 +08:00
python-packages.nix Merge pull request #322507 from malob/fix-pyreqwest-impersonate-darwin 2024-06-26 03:52:26 +02:00
qt5-packages.nix
qt6-packages.nix
release-alternatives.nix
release-attrpaths-superset.nix
release-cross.nix release-cross.nix: test cross compilation to x86_64-openbsd 2024-06-18 14:10:27 -04:00
release-cuda.nix
release-haskell.nix top-level/release-haskell.nix: update list of Haskell executables 2024-06-07 15:01:29 +02:00
release-lib.nix pkgs/top-level/release{,-lib}.nix: remove hardcoded system 2024-06-06 21:16:30 -07:00
release-outpaths.nix
release-python.nix pkgs/top-level: stop permitting openssl 1.1 2024-06-24 02:25:04 +02:00
release-r.nix
release-small.nix
release.nix pkgs/top-level: stop permitting openssl 1.1 2024-06-24 02:25:04 +02:00
ruby-packages.nix rubyPackages.rails: 7.1.3.2 -> 7.1.3.4 2024-06-15 14:56:35 +02:00
splice.nix
stage.nix Revert #320852: Clean up cross bootstrapping 2024-06-21 07:48:24 +02:00
unixtools.nix unixtools: Add entries for FreeBSD 2024-05-18 09:04:37 +02:00
wine-packages.nix