Chia-Network / bladebit

A high-performance k32-only, Chia (XCH) plotter supporting in-RAM and disk-based plotting
Apache License 2.0
337 stars 106 forks source link

Add flake for nix build support #206

Closed abueide closed 2 years ago

abueide commented 2 years ago

This PR depends on the flake from the relic fork being merged in: https://github.com/Chia-Network/relic/pull/3 as well as the flake from the bls-signatures PR: https://github.com/Chia-Network/bls-signatures/pull/343

Since nix doesn't support downloading dependencies during the build process, Some cmake_modules find files were added to locate libraries on local machine if -DBUILD_LOCAL=true

If BUILD_LOCAL is not specified or is false, build behavior is unchanged

abueide commented 2 years ago

wrong branch, sorry!