fixed electrum

This commit is contained in:
Bryan Ramos 2025-07-06 10:20:47 -04:00
parent a20993403f
commit 9db03305a9
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8

View file

@ -13,24 +13,24 @@ let
in in
{ options.modules.system.bitcoin.electrum = { enable = mkEnableOption "Electrs Server"; }; { options.modules.system.bitcoin.electrum = { enable = mkEnableOption "Electrs Server"; };
config = mkIf (cfg.enable && btc.enable) { config = mkIf (cfg.enable && btc.enable) {
nixpkgs.overlays = [ #nixpkgs.overlays = [
(final: prev: { # (final: prev: {
electrs = prev.electrs.overrideAttrs (old: rec { # electrs = prev.electrs.overrideAttrs (old: rec {
version = "0.10.6"; # version = "0.10.6";
src = pkgs.fetchFromGitHub { # src = pkgs.fetchFromGitHub {
owner = "romanz"; # owner = "romanz";
repo = "electrs"; # repo = "electrs";
rev = "v${version}"; # rev = "v${version}";
hash = "sha256-yp9fKD7zH9Ne2+WQUupaxvUx39RWE8RdY4U6lHuDGSc="; # hash = "sha256-yp9fKD7zH9Ne2+WQUupaxvUx39RWE8RdY4U6lHuDGSc=";
}; # };
cargoDeps = old.cargoDeps.overrideAttrs (lib.const { # cargoDeps = old.cargoDeps.overrideAttrs (lib.const {
name = "electrs-vendor.tar.gz"; # name = "electrs-vendor.tar.gz";
inherit src; # inherit src;
outputHash = "sha256-qQKAQHOAeYWQ5YVtx12hIAjNA7Aj1MW1m+WimlBWPv0="; # outputHash = "sha256-qQKAQHOAeYWQ5YVtx12hIAjNA7Aj1MW1m+WimlBWPv0=";
}); # });
}); # });
}) # })
]; #];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
electrs electrs