Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable build with nix flakes #80

Merged
merged 5 commits into from
Apr 10, 2024
Merged

enable build with nix flakes #80

merged 5 commits into from
Apr 10, 2024

Commits on Apr 5, 2024

  1. 1 Configuration menu
    Copy the full SHA
    580fc29 View commit details
    Browse the repository at this point in the history
  2. Update some more crates

    All minor. Including an update from rust-bitcoin v0.31.1 to v0.31.2.
    shesek committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    65f7a57 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2024

  1. enable build with nix flakes

    By default runs the bitcoin version
    
    ```shell
    $ nix run .
    Config { log: StdErrLog { verbosity: Error, quiet: false, show_level: true, timestamp: Off, modules: [], writer: "stderr", color_choice: Auto, show_module_names: false }, network_type: Bitcoin, db_path: "./db/mainnet", daemon_dir: "/home/casatta/.bitcoin", blocks_dir: "/home/casatta/.bitcoin/blocks", daemon_rpc_addr: 127.0.0.1:8332, cookie: None, electrum_rpc_addr: 127.0.0.1:50001, http_addr: 127.0.0.1:3000, http_socket_file: None, monitoring_addr: 127.0.0.1:4224, jsonrpc_import: false, light_mode: false, address_search: false, index_unspendables: false, cors: None, precache_scripts: None, utxos_limit: 500, electrum_txs_limit: 500, electrum_banner: "Welcome to electrs-esplora 0.4.1", electrum_rpc_logging: None }
    ```
    
    But it contains also a package with the liquid variant:
    
    ```shell
    $ nix run .#blockstream-electrs-liquid -- --network liquid
    Config { log: StdErrLog { verbosity: Error, quiet: false, show_level: true, timestamp: Off, modules: [], writer: "stderr", color_choice: Auto, show_module_names: false }, network_type: Liquid, db_path: "./db/liquid", daemon_dir: "/home/casatta/.bitcoin/liquidv1", blocks_dir: "/home/casatta/.bitcoin/liquidv1/blocks", daemon_rpc_addr: 127.0.0.1:7041, cookie: None, electrum_rpc_addr: 127.0.0.1:51000, http_addr: 127.0.0.1:3000, http_socket_file: None, monitoring_addr: 127.0.0.1:34224, jsonrpc_import: false, light_mode: false, address_search: false, index_unspendables: false, cors: None, precache_scripts: None, utxos_limit: 500, electrum_txs_limit: 500, electrum_banner: "Welcome to electrs-esplora 0.4.1", electrum_rpc_logging: None, parent_network: Bitcoin, asset_db_path: None }
    ```
    RCasatta committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    6fe0844 View commit details
    Browse the repository at this point in the history
  2. fix nix develop

    with this fix, on nixos you can build the project by doing:
    
    ```shell
    $ nix develop # ensure dependencies to build
    $ cargo build # succesfully build
    ```
    
    otherwise there is an error in building rocksdb
    RCasatta committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    3022109 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2024

  1. ci: add nix build

    RCasatta committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    348397e View commit details
    Browse the repository at this point in the history