added nix build instructions

This commit is contained in:
Thorsten Schindler 2021-09-11 17:00:58 +02:00
parent 5c57c4d0d8
commit 830531791d
No known key found for this signature in database
GPG key ID: 922952DA3C68691E

View file

@ -81,6 +81,26 @@ make release-static -j$(nproc)
Make the package: [p2pool-git](https://aur.archlinux.org/packages/p2pool-git/) Make the package: [p2pool-git](https://aur.archlinux.org/packages/p2pool-git/)
### [Nix/NixOS](https://nixos.org)
This is a flake only project. So you have to use [nixUnstable with nix flakes](https://nixos.wiki/wiki/Flakes) to build or install p2pool.
The commands below use the new flake specific reference-format, so be sure to also set `ca-refernces` in `--experimental-features`.
Because this project has submodules which are not fixed in _nixUnstable_ yet you have to use the `nix/master` branch:
```
nix shell github:nixos/nix/master
```
Run the binary:
```
nix run github:SChernykh/p2pool
```
Run the binary with arguments:
```
nix run github:SChernykh/p2pool -- --help
```
### macOS ### macOS
p2pool binary: p2pool binary: