From 909955098df9c68f6d6ce088f115ebf2ba12b2ec Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Thu, 10 Apr 2025 16:12:40 +0200 Subject: [PATCH] inputs: add nix-bitcoin --- inputs.nix | 21 +++++++++++++++++++++ lock.nix | 4 ++++ update-list.nix | 1 + 3 files changed, 26 insertions(+) diff --git a/inputs.nix b/inputs.nix index 78f008c..7f043b0 100644 --- a/inputs.nix +++ b/inputs.nix @@ -67,6 +67,27 @@ let self = { sha256 = "${lock.nixpkgs-unstable.sha256}"; }; }; + nix-bitcoin = rec { + url = "https://github.com/fort-nix/nix-bitcoin/archive/${lock.nix-bitcoin.revision}.tar.gz"; + updateScript = pkgs.den-http-get-updater { + fileLocation = lockFile; + previousVersion = lock.nix-bitcoin.revision; + versionUrl = "https://api.github.com/repos/fort-nix/nix-bitcoin/commits"; + contentParser = "jq -rc '.[0].sha' <<< \"$newVersion\""; + prefetchList = [{ + previousHash = lock.nix-bitcoin.sha256; + prefetchUrlLocation = { + file = ./inputs.nix; + attrpath = "nix-bitcoin.url"; + }; + }]; + }; + outPath = builtins.fetchTarball { + inherit url; + name = "nix-bitcoin"; + sha256 = "${lock.nix-bitcoin.sha256}"; + }; + }; cosmic-modules = rec { url = "https://github.com/lilyinstarlight/nixos-cosmic/archive/${lock.cosmic-modules.revision}.tar.gz"; updateScript = pkgs.den-http-get-updater { diff --git a/lock.nix b/lock.nix index b11d9d3..9f47d2f 100644 --- a/lock.nix +++ b/lock.nix @@ -11,6 +11,10 @@ revision = "c8cd81426f45942bb2906d5ed2fe21d2f19d95b7"; sha256 = "sha256-tzCdyIJj9AjysC3OuKA+tMD/kDEDAF9mICPDU7ix0JA="; }; + nix-bitcoin = { + revision = "990805aa7c7fcd1552c6e14e8c6df9a88ba9be41"; + sha256 = "sha256-yU7iYlDSD8lOrm02igxIl3y+bXGZDDO0qcG0gO48Cto="; + }; cosmic-modules = { revision = "d20b15f629985fe6900925bef462f947e4a75b2f"; sha256 = "sha256-KEuKL7lM2ZqKzvaGIptVDAce29CAR4ZSgWtFD3PnpB0="; diff --git a/update-list.nix b/update-list.nix index eaaa200..f846bcb 100644 --- a/update-list.nix +++ b/update-list.nix @@ -8,6 +8,7 @@ self: in { "inputs/nixpkgs" = inputsWithPackages.nixpkgs; "inputs/nixpkgs-unstable" = inputsWithPackages.nixpkgs-unstable; + "inputs/nix-bitcoin" = inputsWithPackages.nix-bitcoin; "inputs/cosmic-modules" = inputsWithPackages.cosmic-modules; "inputs/nixos-vscode-server" = inputsWithPackages.nixos-vscode-server; })