Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1018 B
Nix
Raw Permalink Normal View History

2024-06-30 22:22:03 -03:00
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
udev,
}:
rustPlatform.buildRustPackage rec {
pname = "lianad";
2025-07-25 13:52:51 +00:00
version = "12.0"; # keep in sync with liana
2024-06-30 22:22:03 -03:00
src = fetchFromGitHub {
owner = "wizardsardine";
repo = "liana";
rev = "v${version}";
2025-07-25 13:52:51 +00:00
hash = "sha256-TZUNYr7p4P/++eX9ZNU/d1IurPrkZn/PJmJOsB01VMY=";
2024-06-30 22:22:03 -03:00
};
2025-07-25 13:52:51 +00:00
cargoHash = "sha256-Hb5icOKgQiDzFLWwUfkwXcr1vn80QcAr+fKwG37PkYc=";
2024-06-30 22:22:03 -03:00
buildInputs = [ udev ];
buildAndTestSubdir = "lianad";
2024-06-30 22:22:03 -03:00
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;
};
}