Skip to content

upstream packages to nixpkgs #7

Open

Description

@prusnak

1. add bitcoinix package to nixpkgs

2. use nixpkgs package in bitcoinix

Activity

  1. seberm commented on Oct 12, 2026

    @seberm
    Contributor

    Update of btcpayserver:

    Just FYI:
    There is a new version of electrs - v0.12.0.
    As soon as this new version is locked into the bitcoinix, the electrs users must use Bitcoin Core 31+ and will need to reindex due to new index format (see bindex-rs).

  2. added
    area: packages
    type: maintenance
    on Oct 16, 2026
  3. seberm commented on Oct 17, 2026

    @seberm
    Contributor

    We should not support c-lightning-rest (archived project) and add support for clnrest (CLN core plugin) instead:

  4. added a commit that references this issue on Oct 23, 2026
  5. seberm commented on Oct 24, 2026

    @seberm
    Contributor

    Working on #142. This is a just quick recheck what should be +- done to upstream mempool.

    BTW: mempool project seems to be fighting against the current AI situation. I've tried to push a quick fix and I'm getting:

    Action restricted: An owner of this repository has limited the ability to create an issue to users that have contributed to this repository in the past.

    And it seems it's not even possible for newcomers to report a security advisory 😅 - I'm getting a 404 here:


    mempool upstreaming status (checked against 3.3.2, #142, and upstream master). nixpkgs has no mempool package yet.

    Patches

    • 0002-bind-backend-to-HTTP_HOST: still needed (security). Upstream's backend always listens on all interfaces; UNIX_SOCKET_PATH only adds a socket next to the TCP listener. Plan: propose an HTTP_HOST setting to mempool/mempool (default: all interfaces, as now). Until it's merged, bitcoinix applies the patch as an override of the nixpkgs package.
    • 0001-allow-disabling-mining-pool-fetching: only needed by our offline VM tests; real nodes fetch the pools data. Plan: drop it. Instead, the tests serve a fake git tree JSON and an empty pools-v2.json over local HTTP and point POOLS_JSON_TREE_URL/POOLS_JSON_URL at them.

    Other work for nixpkgs

    • Use the nixpkgs npm tooling instead of our fetchNodeModules (like RTL).
    • Fetch the frontend assets in a fixed-output derivation (upstream downloads them during the build).
    • Keep mempool-frontend.withConfig working.
    • Set CI=1 for the frontend build (ng build stalls on the Nix build terminal otherwise).
    • Move mempool-rust-gbt too, and find a maintainer.

    Order

    1. bitcoinix: replace patch 0001 in the tests.
    2. mempool/mempool: propose HTTP_HOST.
    3. nixpkgs: add the packages without patches; bitcoinix switches to them and keeps 0002 as an override until step 2 is merged.

    Trade-off: mempool updates, including security fixes, then wait for nixpkgs review and our nixpkgs pin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: packagestype: maintenance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions