nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ pkgs, ... }:
2{
3 name = "blockbook-frontend";
4 meta = with pkgs.lib; {
5 maintainers = with maintainers; [ _1000101 ];
6 };
7
8 nodes.machine =
9 { ... }:
10 {
11 services.blockbook-frontend."test" = {
12 enable = true;
13 };
14 services.bitcoind.mainnet = {
15 enable = true;
16 rpc = {
17 port = 8030;
18 users.rpc.passwordHMAC = "acc2374e5f9ba9e62a5204d3686616cf$53abdba5e67a9005be6a27ca03a93ce09e58854bc2b871523a0d239a72968033";
19 };
20 };
21 };
22
23 testScript = ''
24 start_all()
25 machine.wait_for_unit("blockbook-frontend-test.service")
26
27 machine.wait_for_open_port(9030)
28
29 machine.succeed("curl -sSfL http://localhost:9030 | grep 'Blockbook'")
30 '';
31}