MinaProtocol / mina

Mina is a cryptocurrency protocol with a constant size blockchain, improving scaling while maintaining decentralization and security.
https://minaprotocol.com
Apache License 2.0
1.98k stars 527 forks source link

Produce a statically linked portable Mina executable #10002

Open joseandro opened 2 years ago

joseandro commented 2 years ago

We're trying to get static builds working using nixpkgs.pkgsMusl. Some inspiration from tezos: https://github.com/serokell/tezos-packaging/blob/84f4c1ab88ce194093cbb3559c3f5bb5ff47d830/nix/static.nix

balsoft commented 2 years ago

Note: estimate is huge because this requires rewriting the entire rocksdb bindings. If at some point in the future this changes, all other work has already been done as part of the main Nix pr.

yorickvP commented 2 years ago

Doing this would allow us to very easily build .deb packages and docker images in CI using Nix, and to distribute mina binaries as single executable files.