2024-07-01 01:22:03 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
udev,
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "lianad";
|
2024-11-10 17:41:21 +00:00
|
|
|
version = "8.0"; # keep in sync with liana
|
2024-07-01 01:22:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wizardsardine";
|
|
|
|
repo = "liana";
|
|
|
|
rev = "v${version}";
|
2024-11-10 17:41:21 +00:00
|
|
|
hash = "sha256-2aIaRZNIRgFdA+NVnzOkEE3kYA15CoNBrsNGBhIz0nU=";
|
2024-07-01 01:22:03 +00:00
|
|
|
};
|
|
|
|
|
2024-11-10 17:41:21 +00:00
|
|
|
cargoHash = "sha256-/EkDAZPNka+vRWsAo4i/65lufUu8N/m8cfBsOInjaxQ=";
|
2024-07-01 01:22:03 +00:00
|
|
|
|
|
|
|
buildInputs = [ udev ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm0644 ./contrib/lianad_config_example.toml $out/etc/liana/config.toml
|
|
|
|
'';
|
|
|
|
|
|
|
|
# bypass broken unit tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
mainProgram = "lianad";
|
|
|
|
description = "Bitcoin wallet leveraging on-chain timelocks for safety and recovery";
|
|
|
|
homepage = "https://wizardsardine.com/liana";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = [
|
|
|
|
lib.maintainers.dunxen
|
|
|
|
lib.maintainers.plebhash
|
|
|
|
];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
broken = stdenv.hostPlatform.isAarch64;
|
|
|
|
};
|
|
|
|
}
|