This repository contains Nix package scripts for building Bitcoin Core with various patches in a streamlined manner. It allows developers and researchers to easily apply and test different patches on Bitcoin Core without manually modifying the source.
.
├── default.nix # Main Nix expression for building Bitcoin Core with patches
├── patches/
│ ├── patch1.diff
│ ├── patch2.diff
│ └── ...
└── README.md # This documentation
Ensure you have Nix installed on your system. If not, install it using:
curl -L https://nixos.org/nix/install | shClone the repository and navigate into it:
git clone https://github.com/your-username/nix-bitcoin-patches.git
cd Nix_packagesRun the build command:
nix-buildThis will fetch Bitcoin Core, apply the patches, and compile it using Nix.
- Modify
default.nixto include the new patch. - Run
nix-buildto apply and compile with the new patch.
Contributions are welcome! Feel free to open an issue or submit a pull request if you have improvements or new patches.
This project is licensed under the MIT License. See the LICENSE file for details.