teos: migrate to by-name
This commit is contained in:
@@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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";
|
||||
};
|
||||
})
|
||||
@@ -10234,10 +10234,6 @@ with pkgs;
|
||||
|
||||
pycoin = with python3Packages; toPythonApplication pycoin;
|
||||
|
||||
inherit (callPackages ../applications/blockchains/teos { })
|
||||
teos
|
||||
;
|
||||
|
||||
vertcoind = vertcoin.override {
|
||||
withGui = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user