Skip to content
Snippets Groups Projects
Commit b994a8cc authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Add a Botan2 override that at least builds for Android

* Add a nix-thunk for nixpkgs-22.11 so that we can take a recent version of a
  nix expression for a Botan2 derivation from it.  The Botan2 derivation in
  the reflex-platform-pinned nixpkgs has some incompatibilities with the newer
  Botan2 source that we plug in.

* Add a nix-thunk for Botan2 itself, pointed at our branch that adds a ZFEC C
  API for our Haskell code to FFI to.  We should be able to point this at
  upstream main when the branch is merged, and a release some time after that.

* Add Botan2 to the overlay itself along with some additional fixes to
  convince it to build for Android.  The upstream expression claims to not
  support Android (true!) so we adjust that metadata.  Then we fix some other
  things (compiler flags, versions of some build dependencies) so it will
  actually build.  We also take the opportunity to minimize the size of the
  resulting library since there's a handy configure flag for doing that.  For
  the moment we also enable debug mode, though presumably we'll want to drop
  that at some point.  And of course we drop our preferred version of the
  source tree in place.
parent 3a339418
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment