teos: migrate to by-name

This commit is contained in:
Grayson Tinker
2026-06-09 07:39:48 -07:00
parent c36f839152
commit 4bcb6f4549
4 changed files with 41 additions and 54 deletions
@@ -1,50 +0,0 @@
{
lib,
rustPlatform,
fetchFromGitHub,
protobuf,
rustfmt,
pkg-config,
openssl,
}:
let
version = "0.2.0";
src = fetchFromGitHub {
owner = "talaia-labs";
repo = "rust-teos";
rev = "v${version}";
hash = "sha256-UrzH9xmhVq12TcSUQ1AihCG1sNGcy/N8LDsZINVKFkY=";
};
meta = {
homepage = "https://github.com/talaia-labs/rust-teos";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ seberm ];
};
updateScript = ./update.sh;
in
{
teos = rustPlatform.buildRustPackage {
pname = "teos";
inherit version src;
cargoHash = "sha256-lod5I94T4wGwXEDtvh2AyaDYM0byCfaSBP8emKV7+3M=";
buildAndTestSubdir = "teos";
nativeBuildInputs = [
protobuf
rustfmt
];
passthru.updateScript = updateScript;
__darwinAllowLocalNetworking = true;
meta = meta // {
description = "Lightning watchtower compliant with BOLT13, written in Rust";
};
};
}
+41
View File
@@ -0,0 +1,41 @@
{
lib,
rustPlatform,
fetchFromGitHub,
protobuf,
rustfmt,
pkg-config,
openssl,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "teos";
version = "0.2.0";
src = fetchFromGitHub {
owner = "talaia-labs";
repo = "rust-teos";
tag = "v${finalAttrs.version}";
hash = "sha256-UrzH9xmhVq12TcSUQ1AihCG1sNGcy/N8LDsZINVKFkY=";
};
cargoHash = "sha256-lod5I94T4wGwXEDtvh2AyaDYM0byCfaSBP8emKV7+3M=";
buildAndTestSubdir = "teos";
nativeBuildInputs = [
protobuf
rustfmt
];
passthru.updateScript = ./update.sh;
__darwinAllowLocalNetworking = true;
meta = {
homepage = "https://github.com/talaia-labs/rust-teos";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ seberm ];
description = "Lightning watchtower compliant with BOLT13, written in Rust";
};
})
-4
View File
@@ -10234,10 +10234,6 @@ with pkgs;
pycoin = with python3Packages; toPythonApplication pycoin;
inherit (callPackages ../applications/blockchains/teos { })
teos
;
vertcoind = vertcoin.override {
withGui = false;
};